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 bfaf811011..c0aa460d06 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 @@ -448,9 +448,9 @@ public final class ConfigurationPropertyName result.append('.'); } if (indexed) { - result.append("["); + result.append('['); result.append(getElement(i, Form.ORIGINAL)); - result.append("]"); + result.append(']'); } else { result.append(getElement(i, Form.DASHED));