From 5e123ad7df5084ec204cf2ad0dd1af57a78206d5 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 13 Jun 2017 11:37:04 +0200 Subject: [PATCH] DATACMNS-102 - Remove trailing whitespaces. Original pull request: #222. --- .../RepositoryBeanDefinitionBuilder.java | 8 +-- .../config/RepositoryConfiguration.java | 26 ++++----- .../support/RepositoryFactoryBeanSupport.java | 30 +++++----- .../support/RepositoryFactorySupport.java | 56 +++++++++---------- ...epositoryConfigurationSourceUnitTests.java | 2 +- .../support/DefaultCrudMethodsUnitTests.java | 2 +- ...DefaultRepositoryInformationUnitTests.java | 2 +- .../RepositoryFactorySupportUnitTests.java | 2 +- 8 files changed, 64 insertions(+), 64 deletions(-) diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionBuilder.java b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionBuilder.java index 99fe0bb21..9fb3ca4aa 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionBuilder.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryBeanDefinitionBuilder.java @@ -32,7 +32,7 @@ import org.springframework.util.Assert; /** * Builder to create {@link BeanDefinitionBuilder} instance to eventually create Spring Data repository instances. - * + * * @author Oliver Gierke * @author Christoph Strobl * @author Peter Rietzler @@ -51,7 +51,7 @@ class RepositoryBeanDefinitionBuilder { /** * Creates a new {@link RepositoryBeanDefinitionBuilder} from the given {@link BeanDefinitionRegistry}, * {@link RepositoryConfigurationExtension} and {@link ResourceLoader}. - * + * * @param registry must not be {@literal null}. * @param extension must not be {@literal null}. * @param resourceLoader must not be {@literal null}. @@ -75,7 +75,7 @@ class RepositoryBeanDefinitionBuilder { /** * Builds a new {@link BeanDefinitionBuilder} from the given {@link BeanDefinitionRegistry} and {@link ResourceLoader} * . - * + * * @param configuration must not be {@literal null}. * @return */ @@ -140,4 +140,4 @@ class RepositoryBeanDefinitionBuilder { return beanName; }); } -} +} \ No newline at end of file diff --git a/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java b/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java index 9a06545cb..5ba53355c 100644 --- a/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java +++ b/src/main/java/org/springframework/data/repository/config/RepositoryConfiguration.java @@ -22,28 +22,28 @@ import org.springframework.data.repository.query.QueryLookupStrategy; /** * Configuration information for a single repository instance. - * + * * @author Oliver Gierke */ public interface RepositoryConfiguration { /** * Returns the base packages that the repository was scanned under. - * + * * @return */ Iterable getBasePackages(); /** * Returns the interface name of the repository. - * + * * @return */ String getRepositoryInterface(); /** * Returns the key to resolve a {@link QueryLookupStrategy} from eventually. - * + * * @see QueryLookupStrategy.Key * @return */ @@ -51,21 +51,21 @@ public interface RepositoryConfiguration getNamedQueriesLocation(); /** * Returns the class name of the custom implementation. - * + * * @return */ String getImplementationClassName(); /** * Returns the bean name of the custom implementation. - * + * * @return */ String getImplementationBeanName(); @@ -73,7 +73,7 @@ public interface RepositoryConfiguration getExcludeFilters(); diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java index 708d6d25d..b2b47b38b 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactoryBeanSupport.java @@ -44,7 +44,7 @@ import org.springframework.util.Assert; /** * Adapter for Springs {@link FactoryBean} interface to allow easy setup of repository factories via Spring * configuration. - * + * * @param the type of the repository * @author Oliver Gierke * @author Thomas Darimont @@ -73,7 +73,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Creates a new {@link RepositoryFactoryBeanSupport} for the given repository interface. - * + * * @param repositoryInterface must not be {@literal null}. */ protected RepositoryFactoryBeanSupport(Class repositoryInterface) { @@ -84,7 +84,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Configures the repository base class to be used. - * + * * @param repositoryBaseClass the repositoryBaseClass to set, can be {@literal null}. * @since 1.11 */ @@ -94,7 +94,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Set the {@link QueryLookupStrategy.Key} to be used. - * + * * @param queryLookupStrategyKey */ public void setQueryLookupStrategyKey(Key queryLookupStrategyKey) { @@ -103,7 +103,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Setter to inject a custom repository implementation. - * + * * @param customImplementation */ public void setCustomImplementation(Object customImplementation) { @@ -112,7 +112,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Setter to inject a {@link NamedQueries} instance. - * + * * @param namedQueries the namedQueries to set */ public void setNamedQueries(NamedQueries namedQueries) { @@ -122,7 +122,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Configures the {@link MappingContext} to be used to lookup {@link PersistentEntity} instances for * {@link #getPersistentEntity()}. - * + * * @param mappingContext */ protected void setMappingContext(MappingContext mappingContext) { @@ -131,7 +131,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Sets the {@link EvaluationContextProvider} to be used to evaluate SpEL expressions in manually defined queries. - * + * * @param evaluationContextProvider can be {@literal null}, defaults to * {@link DefaultEvaluationContextProvider#INSTANCE}. */ @@ -142,14 +142,14 @@ public abstract class RepositoryFactoryBeanSupport, /** * Configures whether to initialize the repository proxy lazily. This defaults to {@literal false}. - * + * * @param lazy whether to initialize the repository proxy lazily. This defaults to {@literal false}. */ public void setLazyInit(boolean lazy) { this.lazyInit = lazy; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -158,7 +158,7 @@ public abstract class RepositoryFactoryBeanSupport, this.classLoader = classLoader; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -167,7 +167,7 @@ public abstract class RepositoryFactoryBeanSupport, this.beanFactory = beanFactory; } - /* + /* * (non-Javadoc) * @see org.springframework.context.ApplicationEventPublisherAware#setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) */ @@ -185,7 +185,7 @@ public abstract class RepositoryFactoryBeanSupport, return (EntityInformation) factory.getEntityInformation(repositoryMetadata.getDomainType()); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactoryInformation#getRepositoryInformation() */ @@ -193,7 +193,7 @@ public abstract class RepositoryFactoryBeanSupport, return this.factory.getRepositoryInformation(repositoryMetadata, customImplementation.map(Object::getClass)); } - /* + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactoryInformation#getPersistentEntity() */ @@ -263,7 +263,7 @@ public abstract class RepositoryFactoryBeanSupport, /** * Create the actual {@link RepositoryFactorySupport} instance. - * + * * @return */ protected abstract RepositoryFactorySupport createRepositoryFactory(); 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 3c12b5396..a496e7f7c 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 @@ -67,7 +67,7 @@ import org.springframework.util.Assert; * Factory bean to create instances of a given repository interface. Creates a proxy implementing the configured * repository interface and apply an advice handing the control to the {@code QueryExecuterMethodInterceptor}. Query * detection strategy can be configured by setting {@link QueryLookupStrategy.Key}. - * + * * @author Oliver Gierke * @author Mark Paluch * @author Christoph Strobl @@ -102,7 +102,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Sets the strategy of how to lookup a query to execute finders. - * + * * @param key */ public void setQueryLookupStrategyKey(Key key) { @@ -111,14 +111,14 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Configures a {@link NamedQueries} instance to be handed to the {@link QueryLookupStrategy} for query creation. - * + * * @param namedQueries the namedQueries to set */ public void setNamedQueries(NamedQueries namedQueries) { this.namedQueries = namedQueries == null ? PropertiesBasedNamedQueries.EMPTY : namedQueries; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) */ @@ -127,7 +127,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, this.classLoader = classLoader == null ? org.springframework.util.ClassUtils.getDefaultClassLoader() : classLoader; } - /* + /* * (non-Javadoc) * @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory) */ @@ -138,7 +138,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Sets the {@link EvaluationContextProvider} to be used to evaluate SpEL expressions in manually defined queries. - * + * * @param evaluationContextProvider can be {@literal null}, defaults to * {@link DefaultEvaluationContextProvider#INSTANCE}. */ @@ -150,7 +150,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Configures the repository base class to use when creating the repository proxy. If not set, the factory will use * the type returned by {@link #getRepositoryBaseClass(RepositoryMetadata)} by default. - * + * * @param repositoryBaseClass the repository base class to back the repository proxy, can be {@literal null}. * @since 1.11 */ @@ -161,7 +161,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Adds a {@link QueryCreationListener} to the factory to plug in functionality triggered right after creation of * {@link RepositoryQuery} instances. - * + * * @param listener */ public void addQueryCreationListener(QueryCreationListener listener) { @@ -174,7 +174,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, * Adds {@link RepositoryProxyPostProcessor}s to the factory to allow manipulation of the {@link ProxyFactory} before * the proxy gets created. Note that the {@link QueryExecutorMethodInterceptor} will be added to the proxy * after the {@link RepositoryProxyPostProcessor}s are considered. - * + * * @param processor */ public void addRepositoryProxyPostProcessor(RepositoryProxyPostProcessor processor) { @@ -185,7 +185,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns a repository instance for the given interface. - * + * * @param * @param repositoryInterface * @return @@ -197,7 +197,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns a repository instance for the given interface backed by an instance providing implementation logic for * custom logic. - * + * * @param * @param repositoryInterface * @param customImplementation @@ -210,7 +210,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns a repository instance for the given interface backed by an instance providing implementation logic for * custom logic. - * + * * @param * @param repositoryInterface * @param customImplementation @@ -229,7 +229,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, // Create proxy ProxyFactory result = new ProxyFactory(); result.setTarget(target); - result.setInterfaces(new Class[] { repositoryInterface, Repository.class, TransactionalProxy.class }); + result.setInterfaces(repositoryInterface, Repository.class, TransactionalProxy.class); result.addAdvice(SurroundingTransactionDetectorMethodInterceptor.INSTANCE); result.addAdvisor(ExposeInvocationInterceptor.ADVISOR); @@ -248,7 +248,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link RepositoryMetadata} for the given repository interface. - * + * * @param repositoryInterface will never be {@literal null}. * @return */ @@ -258,7 +258,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link RepositoryInformation} for the given repository interface. - * + * * @param metadata * @param customImplementationClass * @return @@ -284,7 +284,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link EntityInformation} for the given domain class. - * + * * @param the entity type * @param the id type * @param domainClass @@ -294,7 +294,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Create a repository instance as backing for the query proxy. - * + * * @param metadata * @return */ @@ -303,7 +303,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the base class backing the actual repository instance. Make sure * {@link #getTargetRepository(RepositoryMetadata)} returns an instance of this class. - * + * * @param metadata * @return */ @@ -311,7 +311,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link QueryLookupStrategy} for the given {@link Key} and {@link EvaluationContextProvider}. - * + * * @param key can be {@literal null}. * @param evaluationContextProvider will never be {@literal null}. * @return the {@link QueryLookupStrategy} to use or {@literal null} if no queries should be looked up. @@ -324,7 +324,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Validates the given repository interface as well as the given custom implementation. - * + * * @param repositoryInformation * @param customImplementation */ @@ -351,7 +351,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Creates a repository of the repository base class defined in the given {@link RepositoryInformation} using * reflection. - * + * * @param information * @param constructorArguments * @return @@ -373,7 +373,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, * This {@code MethodInterceptor} intercepts calls to methods of the custom implementation and delegates the 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. - * + * * @author Oliver Gierke */ public class QueryExecutorMethodInterceptor implements MethodInterceptor { @@ -457,7 +457,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns whether we know of a query to execute for the given {@link Method}; - * + * * @param method * @return */ @@ -501,7 +501,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Executes the given method on the given target. Correctly unwraps exceptions not caused by the reflection magic. - * + * * @param target * @param method * @param parameters @@ -522,7 +522,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns whether the given {@link MethodInvocation} is considered to be targeted as an invocation of a custom * method. - * + * * @param method * @return */ @@ -593,7 +593,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * {@link QueryCreationListener} collecting the {@link QueryMethod}s created for all query methods of the repository * interface. - * + * * @author Oliver Gierke */ @Getter @@ -614,7 +614,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Simple value object to build up keys to cache {@link RepositoryInformation} instances. - * + * * @author Oliver Gierke */ @EqualsAndHashCode @@ -626,7 +626,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Creates a new {@link RepositoryInformationCacheKey} for the given {@link RepositoryMetadata} and cuytom * implementation type. - * + * * @param repositoryInterfaceName must not be {@literal null}. * @param customImplementationClassName */ diff --git a/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java b/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java index 58841314c..827221839 100755 --- a/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java +++ b/src/test/java/org/springframework/data/repository/config/AnnotationRepositoryConfigurationSourceUnitTests.java @@ -35,7 +35,7 @@ import org.springframework.data.util.Streamable; /** * Unit tests for {@link AnnotationRepositoryConfigurationSource}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java index 590b14a31..ab9804a86 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultCrudMethodsUnitTests.java @@ -35,7 +35,7 @@ import org.springframework.data.repository.core.RepositoryMetadata; /** * Unit tests dor {@link DefaultCrudMethods}. - * + * * @author Oliver Gierke * @author Thomas Darimont */ diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java index fb4972899..e04ce5cb7 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java @@ -47,7 +47,7 @@ import org.springframework.data.repository.core.support.DefaultRepositoryMetadat /** * Unit tests for {@link DefaultRepositoryInformation}. - * + * * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch diff --git a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java index b07d0ed9d..71ed490d2 100755 --- a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java @@ -63,7 +63,7 @@ import org.springframework.util.concurrent.ListenableFuture; /** * Unit tests for {@link RepositoryFactorySupport}. - * + * * @author Oliver Gierke * @author Mark Paluch */