buildPropertyDeprecations() — spring-boot Function Reference
Architecture documentation for the buildPropertyDeprecations() function in MergeMetadataGenerationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2c7f4fa9_99db_9b88_9e01_273bde231203["buildPropertyDeprecations()"] 80b8d0af_5b68_c5dc_cc48_32a6741cefe3["mergingOfAdditionalDeprecation()"] 80b8d0af_5b68_c5dc_cc48_32a6741cefe3 -->|calls| 2c7f4fa9_99db_9b88_9e01_273bde231203 6d05120f_bafe_634b_9167_dd868a05e8a2["JSONArray()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| 6d05120f_bafe_634b_9167_dd868a05e8a2 135fcb76_5f4d_6bcf_4ec3_690e10d8d879["JSONObject()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| 135fcb76_5f4d_6bcf_4ec3_690e10d8d879 c837e11c_a2cc_cf90_018d_1ecafff750c5["getType()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| c837e11c_a2cc_cf90_018d_1ecafff750c5 391465f9_f06c_68db_4b7e_5464f91e0d0d["getDeprecation()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| 391465f9_f06c_68db_4b7e_5464f91e0d0d f4ed3434_3d7c_80a5_f7bb_9c27ce373861["getReason()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| f4ed3434_3d7c_80a5_f7bb_9c27ce373861 e0619aaa_1dce_d291_ff18_f544a40c3516["getReplacement()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| e0619aaa_1dce_d291_ff18_f544a40c3516 9702a09b_0360_900c_73ec_988817699ff9["getSince()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| 9702a09b_0360_900c_73ec_988817699ff9 0fcb93b3_4873_3258_b9e6_29138d183448["put()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| 0fcb93b3_4873_3258_b9e6_29138d183448 e8e90934_397b_b72b_06c2_bff3d0ed5ac5["getName()"] 2c7f4fa9_99db_9b88_9e01_273bde231203 -->|calls| e8e90934_397b_b72b_06c2_bff3d0ed5ac5 style 2c7f4fa9_99db_9b88_9e01_273bde231203 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/MergeMetadataGenerationTests.java lines 255–283
private String buildPropertyDeprecations(ItemMetadata... items) throws Exception {
JSONArray propertiesArray = new JSONArray();
for (ItemMetadata item : items) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("name", item.getName());
if (item.getType() != null) {
jsonObject.put("type", item.getType());
}
ItemDeprecation deprecation = item.getDeprecation();
if (deprecation != null) {
JSONObject deprecationJson = new JSONObject();
if (deprecation.getReason() != null) {
deprecationJson.put("reason", deprecation.getReason());
}
if (deprecation.getReplacement() != null) {
deprecationJson.put("replacement", deprecation.getReplacement());
}
if (deprecation.getSince() != null) {
deprecationJson.put("since", deprecation.getSince());
}
jsonObject.put("deprecation", deprecationJson);
}
propertiesArray.put(jsonObject);
}
JSONObject additionalMetadata = new JSONObject();
additionalMetadata.put("properties", propertiesArray);
return additionalMetadata.toString();
}
Domain
Subdomains
Calls
- JSONArray()
- JSONObject()
- getDeprecation()
- getName()
- getReason()
- getReplacement()
- getSince()
- getType()
- put()
Called By
Source
Frequently Asked Questions
What does buildPropertyDeprecations() do?
buildPropertyDeprecations() is a function in the spring-boot codebase.
What does buildPropertyDeprecations() call?
buildPropertyDeprecations() calls 9 function(s): JSONArray, JSONObject, getDeprecation, getName, getReason, getReplacement, getSince, getType, and 1 more.
What calls buildPropertyDeprecations()?
buildPropertyDeprecations() is called by 1 function(s): mergingOfAdditionalDeprecation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free