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/domain/Pageable.java b/src/main/java/org/springframework/data/domain/Pageable.java index 6b16849be9..5b9af21d5a 100644 --- a/src/main/java/org/springframework/data/domain/Pageable.java +++ b/src/main/java/org/springframework/data/domain/Pageable.java @@ -155,7 +155,7 @@ default Sort getSortOr(Sort sort) { /** * Creates a new {@link Pageable} with {@code pageNumber} applied. * - * @param pageNumber the page numbe, zero-based. + * @param pageNumber the page number, zero-based. * @return a new {@link PageRequest} or throws {@link UnsupportedOperationException} if the object is * {@link #isUnpaged()} and the {@code pageNumber} is not zero. * @since 2.5 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/mapping/PersistentPropertyPath.java b/src/main/java/org/springframework/data/mapping/PersistentPropertyPath.java index 784db95260..814f788572 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentPropertyPath.java +++ b/src/main/java/org/springframework/data/mapping/PersistentPropertyPath.java @@ -101,8 +101,8 @@ default boolean isRootPath() { /** * Returns the sub-path of the current one as if it was based on the given base path. So for a current path - * {@code foo.bar} and a given base {@code foo} it would return {@code bar}. If the given path is not a base of the - * the current one the current {@link PersistentPropertyPath} will be returned as is. + * {@code foo.bar} and a given base {@code foo} it would return {@code bar}. If the given path is not a base of + * the current {@link PersistentPropertyPath} will be returned as is. * * @param base must not be {@literal null}. * @return will never be {@literal null}. diff --git a/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java b/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java index 97f084bc75..a01105d81a 100644 --- a/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java +++ b/src/main/java/org/springframework/data/mapping/context/MappingContextEvent.java @@ -23,7 +23,7 @@ import org.springframework.util.Assert; /** - * Base implementation of an {@link ApplicationEvent} refering to a {@link PersistentEntity}. + * Base implementation of an {@link ApplicationEvent} referring to a {@link PersistentEntity}. * * @author Oliver Gierke * @author Jon Brisbin 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/RepositoryBeanDefinitionRegistrarSupport.java b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java index 794d6da111..948421cb78 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionRegistrarSupport.java @@ -97,7 +97,7 @@ public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionR } /** - * Return the annotation to obtain configuration information from. Will be wrappen into an + * Return the annotation to obtain configuration information from. Will be wrapped into an * {@link AnnotationRepositoryConfigurationSource} so have a look at the constants in there for what annotation * attributes it expects. * 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/IncompleteRepositoryCompositionException.java b/src/main/java/org/springframework/data/repository/core/support/IncompleteRepositoryCompositionException.java index 85a5390403..51f43b7154 100644 --- a/src/main/java/org/springframework/data/repository/core/support/IncompleteRepositoryCompositionException.java +++ b/src/main/java/org/springframework/data/repository/core/support/IncompleteRepositoryCompositionException.java @@ -18,7 +18,7 @@ import org.springframework.data.repository.core.RepositoryCreationException; /** - * Exception thrown during repository creation when a the repository has custom methods that are not backed by a + * Exception thrown during repository creation when the repository has custom methods that are not backed by a * fragment or if no fragment could be found for a repository method invocation. * * @author Mark Paluch 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/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index 8a5fd5232c..dfd1754042 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -650,7 +650,7 @@ private Lazy createProjectionFactory() { * Checks if at least one {@link RepositoryFragment} indicates need to access to {@link RepositoryMetadata} by being * flagged with {@link RepositoryMetadataAccess}. * - * @param fragments the fragments to intospect. + * @param fragments the fragments to introspect. * @return {@literal true} if access to metadata is required. */ private static boolean shouldExposeMetadata(RepositoryFragments fragments) { 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 diff --git a/src/main/java/org/springframework/data/util/MethodInvocationRecorder.java b/src/main/java/org/springframework/data/util/MethodInvocationRecorder.java index 53a2963f80..099945734c 100644 --- a/src/main/java/org/springframework/data/util/MethodInvocationRecorder.java +++ b/src/main/java/org/springframework/data/util/MethodInvocationRecorder.java @@ -56,7 +56,7 @@ public class MethodInvocationRecorder { private final @Nullable RecordingMethodInterceptor interceptor; /** - * Creates a new {@link MethodInvocationRecorder}. For ad-hoc instantation prefer the static + * Creates a new {@link MethodInvocationRecorder}. For ad-hoc instantiation prefer the static * {@link #forProxyOf(Class)}. */ private MethodInvocationRecorder() { diff --git a/src/main/java/org/springframework/data/web/OffsetScrollPositionArgumentResolver.java b/src/main/java/org/springframework/data/web/OffsetScrollPositionArgumentResolver.java index 459a6999d4..bb4edab664 100644 --- a/src/main/java/org/springframework/data/web/OffsetScrollPositionArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/OffsetScrollPositionArgumentResolver.java @@ -48,7 +48,7 @@ public interface OffsetScrollPositionArgumentResolver extends HandlerMethodArgum * @param webRequest the current request * @param binderFactory a factory for creating {@link WebDataBinder} instances * @return the resolved argument value or {@literal null} if the value cannot be resolved. The returned value - * considers {@link MethodParameter#isOptional() Optional} wrapping by returing either the value wrapped + * considers {@link MethodParameter#isOptional() Optional} wrapping by returning either the value wrapped * within Optional or Optional.empty(). */ @Override diff --git a/src/main/java/org/springframework/data/web/SlicedResourcesAssembler.java b/src/main/java/org/springframework/data/web/SlicedResourcesAssembler.java index 10b3bbb2b4..8676bf39ae 100644 --- a/src/main/java/org/springframework/data/web/SlicedResourcesAssembler.java +++ b/src/main/java/org/springframework/data/web/SlicedResourcesAssembler.java @@ -85,7 +85,7 @@ private SlicedResourcesAssembler(@Nullable HateoasPageableHandlerMethodArgumentR /** * Configures whether to always add {@code first} links to the {@link SlicedModel} * created. Defaults to - * {@literal false} which means that {@code first} links onlys appear in conjunction with {@code prev} and + * {@literal false} which means that {@code first} links only appear in conjunction with {@code prev} and * {@code next} links. * * @param forceFirstRel whether to always add {@code first} links to the {@link SlicedModel} created.