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 301cb67e8..dde63897d 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/domain/Sort.java b/src/main/java/org/springframework/data/domain/Sort.java index cc93f405a..332d429d0 100644 --- a/src/main/java/org/springframework/data/domain/Sort.java +++ b/src/main/java/org/springframework/data/domain/Sort.java @@ -187,7 +187,7 @@ public class Sort implements Streamable { /** * 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 0f003b2c2..8791d3348 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 0626c7780..2b0dfcd62 100644 --- a/src/main/java/org/springframework/data/repository/core/CrudMethods.java +++ b/src/main/java/org/springframework/data/repository/core/CrudMethods.java @@ -32,10 +32,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() */ Optional getSaveMethod(); @@ -48,7 +48,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. @@ -88,7 +88,7 @@ public interface CrudMethods { Optional 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 5d4f2b560..acffa04e0 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 @@ -60,7 +60,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 46cd5b866..9adcc2ba7 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryMethod.java +++ b/src/main/java/org/springframework/data/repository/query/QueryMethod.java @@ -88,7 +88,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())); } } @@ -106,7 +106,8 @@ public class QueryMethod { Class methodDomainClass = metadata.getReturnedDomainClass(method); return repositoryDomainClass == null || repositoryDomainClass.isAssignableFrom(methodDomainClass) - ? methodDomainClass : repositoryDomainClass; + ? methodDomainClass + : repositoryDomainClass; }); this.resultProcessor = new ResultProcessor(this, factory); 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 e1dcee3f8..f5c9d9387 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 @@ -68,7 +68,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); @@ -150,14 +150,16 @@ public class Part { BETWEEN(2, "IsBetween", "Between"), IS_NOT_NULL(0, "IsNotNull", "NotNull"), IS_NULL(0, "IsNull", "Null"), LESS_THAN( "IsLessThan", "LessThan"), LESS_THAN_EQUAL("IsLessThanEqual", "LessThanEqual"), GREATER_THAN("IsGreaterThan", - "GreaterThan"), GREATER_THAN_EQUAL("IsGreaterThanEqual", "GreaterThanEqual"), BEFORE("IsBefore", "Before"), AFTER( - "IsAfter", "After"), NOT_LIKE("IsNotLike", "NotLike"), LIKE("IsLike", "Like"), STARTING_WITH("IsStartingWith", - "StartingWith", "StartsWith"), ENDING_WITH("IsEndingWith", "EndingWith", "EndsWith"), IS_NOT_EMPTY(0, "IsNotEmpty", - "NotEmpty"), IS_EMPTY(0, "IsEmpty", "Empty"), NOT_CONTAINING("IsNotContaining", "NotContaining", "NotContains"), - CONTAINING("IsContaining", "Containing", "Contains"), NOT_IN("IsNotIn", "NotIn"), IN("IsIn", "In"), NEAR("IsNear", - "Near"), WITHIN("IsWithin", "Within"), REGEX("MatchesRegex", "Matches", "Regex"), EXISTS(0, "Exists"), TRUE(0, - "IsTrue", "True"), FALSE(0, "IsFalse", "False"), NEGATING_SIMPLE_PROPERTY("IsNot", "Not"), SIMPLE_PROPERTY("Is", - "Equals"); + "GreaterThan"), GREATER_THAN_EQUAL("IsGreaterThanEqual", "GreaterThanEqual"), BEFORE("IsBefore", + "Before"), AFTER("IsAfter", "After"), NOT_LIKE("IsNotLike", "NotLike"), LIKE("IsLike", + "Like"), STARTING_WITH("IsStartingWith", "StartingWith", "StartsWith"), ENDING_WITH("IsEndingWith", + "EndingWith", "EndsWith"), IS_NOT_EMPTY(0, "IsNotEmpty", "NotEmpty"), IS_EMPTY(0, "IsEmpty", + "Empty"), NOT_CONTAINING("IsNotContaining", "NotContaining", "NotContains"), CONTAINING( + "IsContaining", "Containing", "Contains"), NOT_IN("IsNotIn", "NotIn"), IN("IsIn", + "In"), NEAR("IsNear", "Near"), WITHIN("IsWithin", "Within"), REGEX("MatchesRegex", + "Matches", "Regex"), EXISTS(0, "Exists"), TRUE(0, "IsTrue", "True"), FALSE(0, + "IsFalse", "False"), NEGATING_SIMPLE_PROPERTY("IsNot", + "Not"), SIMPLE_PROPERTY("Is", "Equals"); // Need to list them again explicitly as the order is important // (esp. for IS_NULL, IS_NOT_NULL) 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 18f0300b0..dc851fe42 100644 --- a/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java +++ b/src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java @@ -193,7 +193,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe * 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;