Skip to content

Commit 7f35f8a

Browse files
committed
Fix ConfigurationPropertyName.equals
Fix a regression in `ConfigurationPropertyName.equals` that was causing incorrect results. Closes gh-14665
1 parent aa6a58d commit 7f35f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ else if (ch1 != ch2) {
348348
}
349349
while (i2 < l2) {
350350
char ch2 = e2.charAt(i, i2++);
351-
if (indexed2 || !ElementsParser.isAlphaNumeric(ch2)) {
351+
if (indexed2 || ElementsParser.isAlphaNumeric(ch2)) {
352352
return false;
353353
}
354354
}

0 commit comments

Comments
 (0)