Skip to content

Commit 0b6303a

Browse files
committed
Polish "Fix typo in ContextPairs"
See gh-48282
1 parent b6fa57d commit 0b6303a

File tree

1 file changed

+4
-4
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ private <T, V> BiConsumer<T, BiConsumer<String, V>> none() {
8686
};
8787
}
8888

89-
private BinaryOperator<String> joinWith(String delimeter) {
89+
private BinaryOperator<String> joinWith(String delimiter) {
9090
return (prefix, name) -> {
91-
StringBuilder joined = new StringBuilder(prefix.length() + delimeter.length() + name.length());
91+
StringBuilder joined = new StringBuilder(prefix.length() + delimiter.length() + name.length());
9292
joined.append(prefix);
93-
if (!prefix.isEmpty() && !prefix.endsWith(delimeter) && !name.startsWith(delimeter)) {
94-
joined.append(delimeter);
93+
if (!prefix.isEmpty() && !prefix.endsWith(delimiter) && !name.startsWith(delimiter)) {
94+
joined.append(delimiter);
9595
}
9696
joined.append(name);
9797
return joined.toString();

0 commit comments

Comments
 (0)