From 6348a3d7ee9ba52a48694c9ad6df7725a5de0eac Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 3 May 2018 15:45:05 +0200 Subject: [PATCH] DATACMNS-1308 - Polishing. Remove trailing whitespaces. --- .../support/RepositoryFactorySupport.java | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) 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 af7a87fe8..b3e7819ad 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 @@ -57,7 +57,7 @@ import org.springframework.util.ObjectUtils; * 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 */ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, BeanFactoryAware { @@ -85,7 +85,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) { @@ -94,14 +94,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) */ @@ -110,7 +110,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) */ @@ -121,7 +121,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}. */ @@ -133,7 +133,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 */ @@ -144,7 +144,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) { @@ -157,7 +157,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) { @@ -168,7 +168,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns a repository instance for the given interface. - * + * * @param * @param repositoryInterface * @return @@ -180,7 +180,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 @@ -226,7 +226,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link ProjectionFactory} to be used with the repository instances created. - * + * * @param classLoader will never be {@literal null}. * @param beanFactory will never be {@literal null}. * @return will never be {@literal null}. @@ -242,7 +242,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link RepositoryMetadata} for the given repository interface. - * + * * @param repositoryInterface will never be {@literal null}. * @return */ @@ -252,7 +252,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link RepositoryInformation} for the given repository interface. - * + * * @param metadata * @param customImplementationClass * @return @@ -281,7 +281,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 @@ -291,7 +291,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Create a repository instance as backing for the query proxy. - * + * * @param metadata * @return */ @@ -300,7 +300,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 */ @@ -308,7 +308,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the {@link QueryLookupStrategy} for the given {@link Key}. - * + * * @deprecated favor {@link #getQueryLookupStrategy(Key, EvaluationContextProvider)} * @param key can be {@literal null} * @return the {@link QueryLookupStrategy} to use or {@literal null} if no queries should be looked up. @@ -319,7 +319,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. @@ -331,7 +331,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Validates the given repository interface as well as the given custom implementation. - * + * * @param repositoryInformation * @param customImplementation */ @@ -354,7 +354,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 @@ -384,7 +384,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns the TransactionProxy type or {@literal null} if not on the classpath. - * + * * @return */ private static Class getTransactionProxyType() { @@ -401,7 +401,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 { @@ -500,7 +500,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 @@ -520,7 +520,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns whether we know of a query to execute for the given {@link Method}; - * + * * @param method * @return */ @@ -531,7 +531,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 */ @@ -548,7 +548,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 */ private static class QueryCollectingQueryCreationListener implements QueryCreationListener { @@ -557,7 +557,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Returns all {@link QueryMethod}s. - * + * * @return */ public List getQueryMethods() { @@ -574,7 +574,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, /** * Simple value object to build up keys to cache {@link RepositoryInformation} instances. - * + * * @author Oliver Gierke */ private static class RepositoryInformationCacheKey { @@ -585,7 +585,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 */ @@ -594,7 +594,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, this.customImplementationClassName = customImplementationType == null ? null : customImplementationType.getName(); } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -610,7 +610,7 @@ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, && ObjectUtils.nullSafeEquals(this.customImplementationClassName, that.customImplementationClassName); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */