From 1c4e8c92e9436b48436904e74c287eb0b1ef59d8 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Tue, 30 Jun 2026 14:57:33 +0700 Subject: [PATCH] Fix Javadoc typos Signed-off-by: Tran Ngoc Nhan --- .../data/auditing/config/AuditingConfiguration.java | 2 +- .../springframework/data/mapping/PersistentProperty.java | 2 +- .../data/querydsl/binding/QuerydslBindingsFactory.java | 6 +++--- .../data/repository/aot/generate/JSONTokener.java | 2 +- .../config/CustomRepositoryImplementationDetector.java | 2 +- .../data/repository/config/SelectionSet.java | 2 +- .../core/support/QueryExecutorMethodInterceptor.java | 2 +- .../core/support/RepositoryFactoryCustomizer.java | 2 +- .../data/repository/support/Repositories.java | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java b/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java index e9428131a4..2515d37cfa 100644 --- a/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java +++ b/src/main/java/org/springframework/data/auditing/config/AuditingConfiguration.java @@ -28,7 +28,7 @@ public interface AuditingConfiguration { /** - * Returns the bean name of the {@link AuditorAware} instance to be used.. + * Returns the bean name of the {@link AuditorAware} instance to be used. * * @return */ diff --git a/src/main/java/org/springframework/data/mapping/PersistentProperty.java b/src/main/java/org/springframework/data/mapping/PersistentProperty.java index 94aed0885d..084bbf7637 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentProperty.java +++ b/src/main/java/org/springframework/data/mapping/PersistentProperty.java @@ -335,7 +335,7 @@ default Association

getRequiredAssociation() { Class getComponentType(); /** - * Returns the raw type as it's pulled from from the reflected property. + * Returns the raw type as it's pulled from the reflected property. * * @return the raw type of the property. */ diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java index 6bb99e4a86..1ca216a5cd 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java @@ -87,7 +87,7 @@ public EntityPathResolver getEntityPathResolver() { } /** - * Creates the {@link QuerydslBindings} to be used using for the given domain type. A {@link QuerydslBinderCustomizer} + * Creates the {@link QuerydslBindings} to be used for the given domain type. A {@link QuerydslBinderCustomizer} * will be auto-detected. * * @param domainType must not be {@literal null}. @@ -98,7 +98,7 @@ public QuerydslBindings createBindingsFor(TypeInformation domainType) { } /** - * Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined + * Creates the {@link QuerydslBindings} to be used for the given domain type and a pre-defined * {@link QuerydslBinderCustomizer}. * * @param domainType must not be {@literal null}. @@ -111,7 +111,7 @@ public QuerydslBindings createBindingsFor(TypeInformation domainType, } /** - * Creates the {@link QuerydslBindings} to be used using for the given domain type and a pre-defined + * Creates the {@link QuerydslBindings} to be used for the given domain type and a pre-defined * {@link QuerydslBinderCustomizer}. If no customizer is given, auto-detection will be applied. * * @param domainType must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/aot/generate/JSONTokener.java b/src/main/java/org/springframework/data/repository/aot/generate/JSONTokener.java index ad99c46a35..03a7ff52af 100644 --- a/src/main/java/org/springframework/data/repository/aot/generate/JSONTokener.java +++ b/src/main/java/org/springframework/data/repository/aot/generate/JSONTokener.java @@ -176,7 +176,7 @@ private void skipToEndOfLine() { * along the way. The opening quote should have already been read. This consumes the closing quote, but does not * include it in the returned string. * - * @param quote either ' or ". + * @param quote either {@code '} or {@code "}. * @return the string up to but not including {@code quote} * @throws NumberFormatException if any unicode escape sequences are malformed. * @throws JSONException if processing of json failed diff --git a/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java b/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java index 4558ec1c14..cbf7d20333 100644 --- a/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java +++ b/src/main/java/org/springframework/data/repository/config/CustomRepositoryImplementationDetector.java @@ -55,7 +55,7 @@ public class CustomRepositoryImplementationDetector { /** * Creates a new {@link CustomRepositoryImplementationDetector} with the given {@link Environment}, * {@link ResourceLoader} and {@link ImplementationDetectionConfiguration}. The latter will be registered for a - * one-time component scan for implementation candidates that will the be used and filtered in all subsequent calls to + * one-time component scan for implementation candidates that will be used and filtered in all subsequent calls to * {@link #detectCustomImplementation(ImplementationLookupConfiguration)}. * * @param environment must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/config/SelectionSet.java b/src/main/java/org/springframework/data/repository/config/SelectionSet.java index df8cbe6ae2..1e83ffc89d 100644 --- a/src/main/java/org/springframework/data/repository/config/SelectionSet.java +++ b/src/main/java/org/springframework/data/repository/config/SelectionSet.java @@ -67,7 +67,7 @@ Optional uniqueResult() { } /** - * Filters the collection with the predicate if there are still more then one elements in the collection. + * Filters the collection with the predicate if there are still more than one element in the collection. * * @param predicate To be used for filtering. */ diff --git a/src/main/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptor.java b/src/main/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptor.java index 6af1d119c2..43ae775aa7 100644 --- a/src/main/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptor.java +++ b/src/main/java/org/springframework/data/repository/core/support/QueryExecutorMethodInterceptor.java @@ -42,7 +42,7 @@ import org.springframework.util.ConcurrentReferenceHashMap; /** - * This {@link MethodInterceptor} intercepts calls to methods of the custom implementation and delegates the to it if + * This {@link MethodInterceptor} intercepts calls to methods of the custom implementation and delegates to it if * configured. Furthermore it resolves method calls to finders and triggers execution of them. You can rely on having a * custom repository implementation instance set if this returns true. * diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryCustomizer.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryCustomizer.java index 02e869ad35..23af0d39a4 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryCustomizer.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryCustomizer.java @@ -16,7 +16,7 @@ package org.springframework.data.repository.core.support; /** - * Callback interface that can be used to to customize a {@link RepositoryFactorySupport repository factory}. + * Callback interface that can be used to customize a {@link RepositoryFactorySupport repository factory}. * * @author Mark Paluch * @since 2.4 diff --git a/src/main/java/org/springframework/data/repository/support/Repositories.java b/src/main/java/org/springframework/data/repository/support/Repositories.java index a946fe7f26..00468e773f 100644 --- a/src/main/java/org/springframework/data/repository/support/Repositories.java +++ b/src/main/java/org/springframework/data/repository/support/Repositories.java @@ -323,7 +323,7 @@ private void cacheFirstOrPrimary(Optional beanF /** * Returns the repository domain type for which to look up the repository. The input can either be a repository * managed type directly. Or it can be a sub-type of a repository managed one, in which case we check the domain types - * we have repositories registered for for assignability. + * we have repositories registered for assignability. * * @param domainType must not be {@literal null}. * @return