diff --git a/src/main/java/org/springframework/data/authentication/UserCredentials.java b/src/main/java/org/springframework/data/authentication/UserCredentials.java index 7532ab4ad..63ab1a674 100644 --- a/src/main/java/org/springframework/data/authentication/UserCredentials.java +++ b/src/main/java/org/springframework/data/authentication/UserCredentials.java @@ -80,7 +80,7 @@ public class UserCredentials { } /** - * Returns the password in obfuscated fashion which means everthing except the first and last character replaced by + * Returns the password in obfuscated fashion which means everything except the first and last character replaced by * stars. If the password is one or two characters long we'll obfuscate it entirely. * * @return the obfuscated password diff --git a/src/main/java/org/springframework/data/config/TypeFilterParser.java b/src/main/java/org/springframework/data/config/TypeFilterParser.java index c7a06ff77..af72d5966 100644 --- a/src/main/java/org/springframework/data/config/TypeFilterParser.java +++ b/src/main/java/org/springframework/data/config/TypeFilterParser.java @@ -106,7 +106,7 @@ public class TypeFilterParser { } /** - * Createsa a {@link TypeFilter} instance from the given {@link Element} and {@link ClassLoader}. + * Creates a {@link TypeFilter} instance from the given {@link Element} and {@link ClassLoader}. * * @param element must not be {@literal null}. * @param classLoader must not be {@literal null}. @@ -171,8 +171,8 @@ public class TypeFilterParser { Class filterClass = classLoader.loadClass(expression); if (!TypeFilter.class.isAssignableFrom(filterClass)) { - throw new IllegalArgumentException("Class is not assignable to [" + TypeFilter.class.getName() + "]: " - + expression); + throw new IllegalArgumentException( + "Class is not assignable to [" + TypeFilter.class.getName() + "]: " + expression); } return (TypeFilter) BeanUtils.instantiateClass(filterClass); } diff --git a/src/main/java/org/springframework/data/geo/Metrics.java b/src/main/java/org/springframework/data/geo/Metrics.java index 6f1cfdfd6..1fcb5b974 100644 --- a/src/main/java/org/springframework/data/geo/Metrics.java +++ b/src/main/java/org/springframework/data/geo/Metrics.java @@ -30,9 +30,10 @@ public enum Metrics implements Metric { private final String abbreviation; /** - * Creates a new {@link Metrics} using the given muliplier. + * Creates a new {@link Metrics} using the given multiplier. * - * @param multiplier the earth radius at equator. + * @param multiplier the earth radius at equator, must not be {@literal null}. + * @param abbreviation the abbreviation to use for this {@link Metric}, must not be {@literal null}. */ private Metrics(double multiplier, String abbreviation) { diff --git a/src/main/java/org/springframework/data/querydsl/QueryDslPredicateExecutor.java b/src/main/java/org/springframework/data/querydsl/QueryDslPredicateExecutor.java index 9e1313c80..22d4a91bd 100644 --- a/src/main/java/org/springframework/data/querydsl/QueryDslPredicateExecutor.java +++ b/src/main/java/org/springframework/data/querydsl/QueryDslPredicateExecutor.java @@ -99,7 +99,7 @@ public interface QueryDslPredicateExecutor { /** * Checks whether the data store contains elements that match the given {@link Predicate}. * - * @param predicate the {@link Predicate} to use for the existance check, can be {@literal null}. + * @param predicate the {@link Predicate} to use for the existence check, can be {@literal null}. * @return {@literal true} if the data store contains elements that match the given {@link Predicate}. */ boolean exists(Predicate predicate); diff --git a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java index d8167c61c..bd52cf7e8 100644 --- a/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java +++ b/src/main/java/org/springframework/data/querydsl/binding/QuerydslPredicate.java @@ -33,7 +33,7 @@ import java.lang.annotation.Target; public @interface QuerydslPredicate { /** - * The root type to create the {@link com.mysema.query.types.Predicate}. Specify this explictly if the type is not + * The root type to create the {@link com.mysema.query.types.Predicate}. Specify this explicitly if the type is not * contained in the controller method's return type. * * @return diff --git a/src/main/java/org/springframework/data/repository/core/CrudMethods.java b/src/main/java/org/springframework/data/repository/core/CrudMethods.java index 2dc8bf63f..db7268ea5 100644 --- a/src/main/java/org/springframework/data/repository/core/CrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/CrudMethods.java @@ -31,10 +31,10 @@ import org.springframework.data.repository.PagingAndSortingRepository; public interface CrudMethods { /** - * Returns the method to be used for saving entities. Usually siganture compatible to + * Returns the method to be used for saving entities. Usually signature compatible to * {@link CrudRepository#save(Object)}. * - * @return the method to save entities or {@literal null} if noen exposed. + * @return the method to save entities or {@literal null} if none exposed. * @see #hasSaveMethod() */ Method getSaveMethod(); @@ -47,7 +47,7 @@ public interface CrudMethods { boolean hasSaveMethod(); /** - * Returns the find all method of the repository. Implementations should prefer more detailled methods like + * Returns the find all method of the repository. Implementations should prefer more detailed methods like * {@link PagingAndSortingRepository}'s taking a {@link Pageable} or {@link Sort} instance. * * @return the find all method of the repository or {@literal null} if not available. @@ -87,7 +87,7 @@ public interface CrudMethods { Method getDeleteMethod(); /** - * Returns whether the repository esposes a delete method. + * Returns whether the repository exposes a delete method. * * @return */ diff --git a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java index 190dc129d..af2bce3b3 100644 --- a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java @@ -57,7 +57,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { } /** - * Creates a new {@link RepositoryMetadata} for the given repsository interface. + * Creates a new {@link RepositoryMetadata} for the given repository interface. * * @param repositoryInterface must not be {@literal null}. * @since 1.9 diff --git a/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java b/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java index 9acc90a23..7ee3ec4ff 100644 --- a/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java +++ b/src/main/java/org/springframework/data/repository/init/ResourceReaderRepositoryPopulator.java @@ -59,7 +59,7 @@ public class ResourceReaderRepositoryPopulator implements RepositoryPopulator, A } /** - * Createsa a new {@link ResourceReaderRepositoryPopulator} using the given {@link ResourceReader} and + * Creates a new {@link ResourceReaderRepositoryPopulator} using the given {@link ResourceReader} and * {@link ClassLoader}. * * @param reader must not be {@literal null}. diff --git a/src/main/java/org/springframework/data/repository/query/QueryMethod.java b/src/main/java/org/springframework/data/repository/query/QueryMethod.java index 12a28e4e9..7a0f6d2c1 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryMethod.java +++ b/src/main/java/org/springframework/data/repository/query/QueryMethod.java @@ -83,7 +83,7 @@ public class QueryMethod { if (hasParameterOfType(method, Sort.class)) { throw new IllegalStateException(String.format("Method must not have Pageable *and* Sort parameter. " - + "Use sorting capabilities on Pageble instead! Offending method: %s", method.toString())); + + "Use sorting capabilities on Pageable instead! Offending method: %s", method.toString())); } } diff --git a/src/main/java/org/springframework/data/repository/query/parser/Part.java b/src/main/java/org/springframework/data/repository/query/parser/Part.java index f90b468fb..e9033db34 100644 --- a/src/main/java/org/springframework/data/repository/query/parser/Part.java +++ b/src/main/java/org/springframework/data/repository/query/parser/Part.java @@ -65,7 +65,7 @@ public class Part { */ public Part(String source, Class clazz, boolean alwaysIgnoreCase) { - Assert.hasText(source, "Part source must not be null or emtpy!"); + Assert.hasText(source, "Part source must not be null or empty!"); Assert.notNull(clazz, "Type must not be null!"); String partToUse = detectAndSetIgnoreCase(source); diff --git a/src/main/java/org/springframework/data/repository/util/NullableWrapper.java b/src/main/java/org/springframework/data/repository/util/NullableWrapper.java index c4837ac6c..f3d71a149 100644 --- a/src/main/java/org/springframework/data/repository/util/NullableWrapper.java +++ b/src/main/java/org/springframework/data/repository/util/NullableWrapper.java @@ -48,7 +48,7 @@ public class NullableWrapper { } /** - * Returns the backing valie + * Returns the backing value. * * @return the value can be {@literal null}. */ diff --git a/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java b/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java index b2bb97880..888118f5b 100644 --- a/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java @@ -177,7 +177,7 @@ public class PageableHandlerMethodArgumentResolver implements HandlerMethodArgum * The delimiter to be used between the qualifier and the actual page number and size properties. Defaults to * {@code _}. So a qualifier of {@code foo} will result in a page number parameter of {@code foo_page}. * - * @param qualifierDelimiter the delimter to be used or {@literal null} to reset to the default. + * @param qualifierDelimiter the delimiter to be used or {@literal null} to reset to the default. */ public void setQualifierDelimiter(String qualifierDelimiter) { this.qualifierDelimiter = qualifierDelimiter == null ? DEFAULT_QUALIFIER_DELIMITER : qualifierDelimiter;