From cf05959375b22d53adb9426e5a7c622cdc94235b Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Thu, 25 Apr 2019 17:11:51 +0200 Subject: [PATCH] Optimize ConfigurationPropertyName.buildToString() See gh-16658 --- .../context/properties/source/ConfigurationPropertyName.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));