From cd745b15cf12711030e72d2d28cb626aff8af477 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Thu, 25 Apr 2019 17:11:51 +0200 Subject: [PATCH] Optimize ConfigurationPropertyName.buildToString() --- .../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 bfaf811011a0..c0aa460d06cf 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 @@ private String buildToString() { 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));