mergeItemMetadata() — spring-boot Function Reference
Architecture documentation for the mergeItemMetadata() function in ConfigurationMetadata.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 5a60efb8_e030_1e9b_be43_f8ee4dc22d1e["mergeItemMetadata()"] e8eb4d7f_bd0d_a4e7_2f33_e9e551170be4["merge()"] e8eb4d7f_bd0d_a4e7_2f33_e9e551170be4 -->|calls| 5a60efb8_e030_1e9b_be43_f8ee4dc22d1e c75ed93e_59ab_75b0_a76b_1287cd9f5cf2["findMatchingItemMetadata()"] 5a60efb8_e030_1e9b_be43_f8ee4dc22d1e -->|calls| c75ed93e_59ab_75b0_a76b_1287cd9f5cf2 48f8fec2_2e27_3a1f_0f94_d07832e9810f["add()"] 5a60efb8_e030_1e9b_be43_f8ee4dc22d1e -->|calls| 48f8fec2_2e27_3a1f_0f94_d07832e9810f style 5a60efb8_e030_1e9b_be43_f8ee4dc22d1e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata.java lines 148–182
protected void mergeItemMetadata(ItemMetadata metadata) {
ItemMetadata matching = findMatchingItemMetadata(metadata);
if (matching != null) {
if (metadata.getDescription() != null) {
matching.setDescription(metadata.getDescription());
}
if (metadata.getDefaultValue() != null) {
matching.setDefaultValue(metadata.getDefaultValue());
}
ItemDeprecation deprecation = metadata.getDeprecation();
ItemDeprecation matchingDeprecation = matching.getDeprecation();
if (deprecation != null) {
if (matchingDeprecation == null) {
matching.setDeprecation(deprecation);
}
else {
if (deprecation.getReason() != null) {
matchingDeprecation.setReason(deprecation.getReason());
}
if (deprecation.getReplacement() != null) {
matchingDeprecation.setReplacement(deprecation.getReplacement());
}
if (deprecation.getLevel() != null) {
matchingDeprecation.setLevel(deprecation.getLevel());
}
if (deprecation.getSince() != null) {
matchingDeprecation.setSince(deprecation.getSince());
}
}
}
}
else {
add(this.items, metadata.getName(), metadata, false);
}
}
Domain
Subdomains
Calls
- add()
- findMatchingItemMetadata()
Called By
Source
Frequently Asked Questions
What does mergeItemMetadata() do?
mergeItemMetadata() is a function in the spring-boot codebase.
What does mergeItemMetadata() call?
mergeItemMetadata() calls 2 function(s): add, findMatchingItemMetadata.
What calls mergeItemMetadata()?
mergeItemMetadata() is called by 1 function(s): merge.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free