From 7f35f8a98258ad87aebe45b6b9a88e269d19e5de Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 2 Oct 2018 13:57:28 -0700 Subject: [PATCH] Fix ConfigurationPropertyName.equals Fix a regression in `ConfigurationPropertyName.equals` that was causing incorrect results. Closes gh-14665 --- .../context/properties/source/ConfigurationPropertyName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java index f13b3fb62f..f4b31f8259 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java @@ -348,7 +348,7 @@ public final class ConfigurationPropertyName } while (i2 < l2) { char ch2 = e2.charAt(i, i2++); - if (indexed2 || !ElementsParser.isAlphaNumeric(ch2)) { + if (indexed2 || ElementsParser.isAlphaNumeric(ch2)) { return false; } }