From 54d3a1ba20d84b973209a013f552da7c0a6001b8 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 23 Jul 2025 21:41:01 +0700 Subject: [PATCH] Fix typos See gh-46517 Signed-off-by: Tran Ngoc Nhan --- .../boot/json/JsonWriterTests.java | 2 +- .../StandardStackTracePrinterTests.java | 20 +++++++++---------- .../boot/logging/TestException.java | 2 +- .../NettyReactiveWebServerFactoryTests.java | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java index 5821fc1564c..6c27e0d5868 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java @@ -436,7 +436,7 @@ class JsonWriterTests { } @Test - void usingMemebersWithoutNameAtAll() { + void usingMembersWithoutNameAtAll() { Couple couple = new Couple(PERSON, new Person("Spring", "Framework", 20)); JsonWriter writer = JsonWriter.of((members) -> members.from(Couple::person2) .usingMembers((personMembers) -> personMembers.from(Person::toString))); diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/StandardStackTracePrinterTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/StandardStackTracePrinterTests.java index 3e4a7de48d5..5e0c44bcdb6 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/StandardStackTracePrinterTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/StandardStackTracePrinterTests.java @@ -69,7 +69,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:NN) at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) ... 1 more """); @@ -85,7 +85,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:NN) at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) Caused by: java.lang.RuntimeException: cause @@ -115,7 +115,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:NN) at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) """); @@ -177,7 +177,7 @@ class StandardStackTracePrinterTests { Wrapped by: java.lang.RuntimeException: exception at org.springframework.boot.logging.TestException.actualCreateException(TestException.java:NN) ... 3 filtered - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) ... 1 more """); @@ -201,7 +201,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.actualCreateException(TestException.java:NN) at org.springframework.boot.logging.TestException.createException(TestException.java:NN) ... 2 filtered - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) """); @@ -253,7 +253,7 @@ class StandardStackTracePrinterTests { Wrapped by: java.lang.RuntimeException: exception ... 3 filtered at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed ... 1 filtered at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) """); @@ -284,7 +284,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:NN) at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: RuntimeException: supressed + Suppressed: RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) ... 1 more Caused by: RuntimeException: cause @@ -316,7 +316,7 @@ class StandardStackTracePrinterTests { at TestException.createException at TestException.createTestException at TestException.CreatorThread.run - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at TestException.createTestException ... 1 more Caused by: java.lang.RuntimeException: cause @@ -340,7 +340,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:59) at org.springframework.boot.logging.TestException.createTestException(TestException.java:49) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:77) - Suppressed: <#834defc3> java.lang.RuntimeException: supressed + Suppressed: <#834defc3> java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:50) ... 1 more Caused by: <#611639c5> java.lang.RuntimeException: cause @@ -367,7 +367,7 @@ class StandardStackTracePrinterTests { at org.springframework.boot.logging.TestException.createException(TestException.java:NN) at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN) - Suppressed: java.lang.RuntimeException: supressed + Suppressed: java.lang.RuntimeException: suppressed at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN) ... 1 more Caused by: java.lang.RuntimeException: cause diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/TestException.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/TestException.java index d0a7d9975e7..68167aeb7a3 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/TestException.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/TestException.java @@ -47,7 +47,7 @@ public final class TestException { Throwable root = new RuntimeException("root"); Throwable cause = createCause(root); Exception exception = createException(cause); - exception.addSuppressed(new RuntimeException("supressed")); + exception.addSuppressed(new RuntimeException("suppressed")); return exception; } diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactoryTests.java index cb03e6efb0e..f164788ccab 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/netty/NettyReactiveWebServerFactoryTests.java @@ -176,7 +176,7 @@ class NettyReactiveWebServerFactoryTests extends AbstractReactiveWebServerFactor @Override @Test - @Disabled("Reactor Netty does not support mutiple ports") + @Disabled("Reactor Netty does not support multiple ports") protected void startedLogMessageWithMultiplePorts() { }