toItemDeprecation() — spring-boot Function Reference
Architecture documentation for the toItemDeprecation() function in JsonMarshaller.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7340dea3_0533_f065_3340_e4e5990881cc["toItemDeprecation()"] a4ddef17_9e29_3655_ab30_36b478cdc572["toItemMetadata()"] a4ddef17_9e29_3655_ab30_36b478cdc572 -->|calls| 7340dea3_0533_f065_3340_e4e5990881cc 56afd5ff_85de_d8b5_5901_a76923fe9704["has()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 56afd5ff_85de_d8b5_5901_a76923fe9704 4c649efe_9b8c_671f_8543_8e5ce14da8b6["checkAllowedKeys()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 4c649efe_9b8c_671f_8543_8e5ce14da8b6 9af42522_7f42_0aca_2b3d_1384bb4a48ed["resolve()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 9af42522_7f42_0aca_2b3d_1384bb4a48ed 0b74e790_40cd_316c_e0a3_c9369a75a47c["getJSONObject()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 0b74e790_40cd_316c_e0a3_c9369a75a47c 97bc1256_f1d9_2ba7_f353_6f84952f431c["optString()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 97bc1256_f1d9_2ba7_f353_6f84952f431c 1a784eea_7bc3_c201_7d50_bd9d689428fb["optBoolean()"] 7340dea3_0533_f065_3340_e4e5990881cc -->|calls| 1a784eea_7bc3_c201_7d50_bd9d689428fb style 7340dea3_0533_f065_3340_e4e5990881cc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/JsonMarshaller.java lines 132–145
private ItemDeprecation toItemDeprecation(JSONObject object, JsonPath path) throws Exception {
if (object.has("deprecation")) {
JSONObject deprecationJsonObject = object.getJSONObject("deprecation");
checkAllowedKeys(deprecationJsonObject, path.resolve("deprecation"), "level", "reason", "replacement",
"since");
ItemDeprecation deprecation = new ItemDeprecation();
deprecation.setLevel(deprecationJsonObject.optString("level", null));
deprecation.setReason(deprecationJsonObject.optString("reason", null));
deprecation.setReplacement(deprecationJsonObject.optString("replacement", null));
deprecation.setSince(deprecationJsonObject.optString("since", null));
return deprecation;
}
return object.optBoolean("deprecated") ? new ItemDeprecation() : null;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toItemDeprecation() do?
toItemDeprecation() is a function in the spring-boot codebase.
What does toItemDeprecation() call?
toItemDeprecation() calls 6 function(s): checkAllowedKeys, getJSONObject, has, optBoolean, optString, resolve.
What calls toItemDeprecation()?
toItemDeprecation() is called by 1 function(s): toItemMetadata.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free