compute() — spring-boot Function Reference
Architecture documentation for the compute() function in Difference.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1f2f5989_074d_11e7_de47_00018040b7ea["compute()"] 918fd0be_c3d7_f6a4_617c_10585bd3cd62["isDeprecated()"] 1f2f5989_074d_11e7_de47_00018040b7ea -->|calls| 918fd0be_c3d7_f6a4_617c_10585bd3cd62 097860b8_471c_9185_deb4_2c446d487af0["getDeprecation()"] 1f2f5989_074d_11e7_de47_00018040b7ea -->|calls| 097860b8_471c_9185_deb4_2c446d487af0 731b0a73_1333_0281_e337_e0290495589e["getDefaultValue()"] 1f2f5989_074d_11e7_de47_00018040b7ea -->|calls| 731b0a73_1333_0281_e337_e0290495589e style 1f2f5989_074d_11e7_de47_00018040b7ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/Difference.java lines 37–58
static Difference compute(ConfigurationMetadataProperty oldProperty, ConfigurationMetadataProperty newProperty) {
if (newProperty == null) {
if (!(oldProperty.isDeprecated() && oldProperty.getDeprecation().getLevel() == Level.ERROR)) {
return new Difference(DifferenceType.DELETED, oldProperty, null);
}
return null;
}
if (newProperty.isDeprecated() && !oldProperty.isDeprecated()) {
Level level = newProperty.getDeprecation().getLevel();
DifferenceType differenceType = (level == Level.WARNING) ? DifferenceType.DEPRECATED
: DifferenceType.DELETED;
return new Difference(differenceType, oldProperty, newProperty);
}
if (oldProperty.isDeprecated() && oldProperty.getDeprecation().getLevel() == Level.WARNING
&& newProperty.isDeprecated() && newProperty.getDeprecation().getLevel() == Level.ERROR) {
return new Difference(DifferenceType.DELETED, oldProperty, newProperty);
}
if (!Objects.equals(oldProperty.getDefaultValue(), newProperty.getDefaultValue())) {
return new Difference(DifferenceType.DEFAULT_CHANGED, oldProperty, newProperty);
}
return null;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does compute() do?
compute() is a function in the spring-boot codebase.
What does compute() call?
compute() calls 3 function(s): getDefaultValue, getDeprecation, isDeprecated.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free