From 0546e3035d93c4622a8df2fe7302da4c0b3b7f59 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Sat, 25 Oct 2025 20:54:17 +0700 Subject: [PATCH] Fix typos See gh-47801 Signed-off-by: Tran Ngoc Nhan --- .../boot/build/RepositoryTransformersExtension.java | 4 ++-- .../boot/build/bom/bomr/MavenMetadataVersionResolver.java | 2 +- .../boot/autoconfigure/container/ContainerImageMetadata.java | 2 +- .../boot/testsupport/classpath/resources/Resource.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/RepositoryTransformersExtension.java b/buildSrc/src/main/java/org/springframework/boot/build/RepositoryTransformersExtension.java index 8e6aa9a6c8a..d77fed6556c 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/RepositoryTransformersExtension.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/RepositoryTransformersExtension.java @@ -115,7 +115,7 @@ public class RepositoryTransformersExtension { List springRepositories = new ArrayList<>(this.project.getRepositories() .withType(MavenArtifactRepository.class) .stream() - .filter(this::isSpringReposirory) + .filter(this::isSpringRepository) .toList()); Function bySnapshots = (repository) -> repository.getName() .contains("snapshot"); @@ -124,7 +124,7 @@ public class RepositoryTransformersExtension { return springRepositories; } - private boolean isSpringReposirory(MavenArtifactRepository repository) { + private boolean isSpringRepository(MavenArtifactRepository repository) { return (repository.getName().startsWith("spring-")); } diff --git a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MavenMetadataVersionResolver.java b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MavenMetadataVersionResolver.java index 74dc6a57c5b..ca7a4cf6554 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MavenMetadataVersionResolver.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MavenMetadataVersionResolver.java @@ -117,7 +117,7 @@ final class MavenMetadataVersionResolver implements VersionResolver { } /** - * Retrives the configured credentials of the given {@code repository}. We cannot use + * Retrieves the configured credentials of the given {@code repository}. We cannot use * {@link MavenArtifactRepository#getCredentials()} as, if the repository has no * credentials, it has the unwanted side-effect of assigning an empty set of username * and password credentials to the repository which may cause subsequent "Username diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java index aaa6d120c9d..3ada30bdfce 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java @@ -24,7 +24,7 @@ import org.springframework.core.AttributeAccessor; * Primarily designed to be attached to {@link BeanDefinition BeanDefinitions} created in * support of Testcontainers or Docker Compose. * - * @param imageName the contaimer image name or {@code null} if the image name is not yet + * @param imageName the container image name or {@code null} if the image name is not yet * known * @author Phillip Webb * @since 3.4.0 diff --git a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resource.java b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resource.java index 29756ce7b74..5f3c9b56c81 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resource.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/resources/Resource.java @@ -21,7 +21,7 @@ import java.nio.file.Path; /** * A resource that is to be made available in tests. * - * @param path the path of the resoure + * @param path the path of the resource * @param additional whether the resource should be made available in addition to those * that already exist elsewhere * @author Andy Wilkinson