From 6d3d4d7da38f05d09e06dc24c4d3780d3405f04b Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 22 Oct 2025 00:17:46 +0700 Subject: [PATCH] Fix typos --- .../boot/autoconfigure/AutoConfigurationReplacements.java | 2 +- .../context/runner/AbstractApplicationContextRunnerTests.java | 2 +- .../antora/modules/reference/pages/testing/test-modules.adoc | 2 +- .../antora/modules/reference/pages/testing/testcontainers.adoc | 2 +- .../boot/loader/zip/VirtualZipPerformanceTests.java | 2 +- .../endpoint/AvailabilityProbesAutoConfigurationTests.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationReplacements.java b/core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationReplacements.java index 043ccb0fee92..3d94b06d8446 100644 --- a/core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationReplacements.java +++ b/core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationReplacements.java @@ -81,7 +81,7 @@ public int hashCode() { } /** - * Loads the relocations from the classpath. Relactions are stored in files named + * Loads the relocations from the classpath. Relocations are stored in files named * {@code META-INF/spring/full-qualified-annotation-name.replacements} on the * classpath. The file is loaded using {@link Properties#load(java.io.InputStream)} * with each entry containing an auto-configuration class name as the key and the diff --git a/core/spring-boot-test/src/test/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunnerTests.java b/core/spring-boot-test/src/test/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunnerTests.java index e52879358d83..43fcdf7f74b3 100644 --- a/core/spring-boot-test/src/test/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunnerTests.java +++ b/core/spring-boot-test/src/test/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunnerTests.java @@ -296,7 +296,7 @@ void prepareDoesNotRefreshContext() { } @Test - void getWirhAdditionalContextInterfaceHasCorrectInstanceOf() { + void getWithAdditionalContextInterfaceHasCorrectInstanceOf() { getWithAdditionalContextInterface() .run((context) -> assertThat(context).isInstanceOf(AdditionalContextInterface.class)); } diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-modules.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-modules.adoc index 6ff48d410e48..3c80cee41bb6 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-modules.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-modules.adoc @@ -8,7 +8,7 @@ Spring Boot offers several focused, feature-specific `-test` modules: |Module | Purpose |`spring-boot-cache-test` -|Testing applications that use Spring Framework's cache abstration. +|Testing applications that use Spring Framework's cache abstraction. |`spring-boot-data-cassandra-test` |Testing applications that use Spring Data Cassandra. Provides the `@DataCassandraTest` test slice. diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc index 1d76e592d3c3..92e3458ff7e8 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc @@ -66,7 +66,7 @@ include-code::MyTestConfiguration[] == Lifecycle of Managed Containers If you have used the annotations and extensions provided by Testcontainers, then the lifecycle of container instances is managed entirely by Testcontainers. -Please refer to the {url-testcontainers-docs}[offical Testcontainers documentation] for the information. +Please refer to the {url-testcontainers-docs}[official Testcontainers documentation] for the information. When the containers are managed by Spring as beans, then their lifecycle is managed by Spring: diff --git a/loader/spring-boot-loader/src/test/java/org/springframework/boot/loader/zip/VirtualZipPerformanceTests.java b/loader/spring-boot-loader/src/test/java/org/springframework/boot/loader/zip/VirtualZipPerformanceTests.java index 1aef91c4cbcf..bd7616e8fa04 100644 --- a/loader/spring-boot-loader/src/test/java/org/springframework/boot/loader/zip/VirtualZipPerformanceTests.java +++ b/loader/spring-boot-loader/src/test/java/org/springframework/boot/loader/zip/VirtualZipPerformanceTests.java @@ -43,7 +43,7 @@ class VirtualZipPerformanceTests { Path temp; @Test - void sequentialReadPerformace() throws IOException { + void sequentialReadPerformance() throws IOException { File file = createZipWithLargeEntries(); long start = System.nanoTime(); try (ZipContent zipContent = ZipContent.open(file.toPath(), "test/")) { diff --git a/module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/AvailabilityProbesAutoConfigurationTests.java b/module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/AvailabilityProbesAutoConfigurationTests.java index f32bdbd0d367..86fc35beafd5 100644 --- a/module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/AvailabilityProbesAutoConfigurationTests.java +++ b/module/spring-boot-health/src/test/java/org/springframework/boot/health/autoconfigure/actuate/endpoint/AvailabilityProbesAutoConfigurationTests.java @@ -54,7 +54,7 @@ void probesWhenPropertyEnabledAddsBeans() { } @Test - void probesWhenNoActautorDependencyDoesNotAddBeans() { + void probesWhenNoActuatorDependencyDoesNotAddBeans() { this.contextRunner.withClassLoader(new FilteredClassLoader(Endpoint.class.getName())) .run(this::doesNotHaveProbeBeans); }