Skip to content

Commit ed8a10b

Browse files
committed
Merge pull request #16658 from Christoph Dreis
* gh-16658: Optimize ConfigurationPropertyName.buildToString() Closes gh-16658
2 parents 32040e3 + cf05959 commit ed8a10b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ private String buildToString() {
448448
result.append('.');
449449
}
450450
if (indexed) {
451-
result.append("[");
451+
result.append('[');
452452
result.append(getElement(i, Form.ORIGINAL));
453-
result.append("]");
453+
result.append(']');
454454
}
455455
else {
456456
result.append(getElement(i, Form.DASHED));

0 commit comments

Comments
 (0)