diff --git a/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java b/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java index 7c94f9d5ccfc..75c268d72017 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/logging/structured/ContextPairs.java @@ -52,12 +52,12 @@ public class ContextPairs { /** * Add pairs using flat naming. * @param the item type - * @param delimeter the delimiter used if there is a prefix + * @param delimiter the delimiter used if there is a prefix * @param pairs callback to add all the pairs * @return a {@link BiConsumer} for use with the {@link JsonWriter} */ - public BiConsumer> flat(String delimeter, Consumer> pairs) { - return flat(joinWith(delimeter), pairs); + public BiConsumer> flat(String delimiter, Consumer> pairs) { + return flat(joinWith(delimiter), pairs); } /** diff --git a/core/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java b/core/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java index 0cb7d51d5d02..e0013d0a8689 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java @@ -58,7 +58,7 @@ void flatWhenPrefixAppliesPrefix() { } @Test - void flatWhenPrefixEndingWithDelimeterAppliesPrefix() { + void flatWhenPrefixEndingWithDelimiterAppliesPrefix() { ContextPairs contextPairs = new ContextPairs(true, "the_"); Map map = Map.of("spring", "boot"); Map actual = apply(contextPairs.flat("_", (pairs) -> pairs.addMapEntries((item) -> map))); @@ -66,7 +66,7 @@ void flatWhenPrefixEndingWithDelimeterAppliesPrefix() { } @Test - void flatWhenPrefixAndNameStartingWithDelimeterAppliesPrefix() { + void flatWhenPrefixAndNameStartingWithDelimiterAppliesPrefix() { ContextPairs contextPairs = new ContextPairs(true, "the"); Map map = Map.of("_spring", "boot"); Map actual = apply(contextPairs.flat("_", (pairs) -> pairs.addMapEntries((item) -> map)));