You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java
+83-8
Original file line number
Diff line number
Diff line change
@@ -237,12 +237,7 @@ public boolean isAncestorOf(ConfigurationPropertyName name) {
237
237
if (this.getNumberOfElements() >= name.getNumberOfElements()) {
238
238
returnfalse;
239
239
}
240
-
for (inti = this.elements.getSize() - 1; i >= 0; i--) {
241
-
if (!elementEquals(this.elements, name.elements, i)) {
242
-
returnfalse;
243
-
}
244
-
}
245
-
returntrue;
240
+
returnelementsEqual(name);
246
241
}
247
242
248
243
@Override
@@ -309,15 +304,34 @@ public boolean equals(Object obj) {
0 commit comments