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 561df1ca8b..56927fdcfe 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 @@ -79,6 +79,7 @@ * @author Christoph Strobl * @author Jens Schauder * @author John Blum + * @author Dennis Melzer */ public abstract class RepositoryFactorySupport implements BeanClassLoaderAware, BeanFactoryAware { @@ -521,7 +522,7 @@ protected void validate(RepositoryMetadata repositoryMetadata) { * @param constructorArguments * @return */ - protected final R getTargetRepositoryViaReflection(RepositoryInformation information, + protected R getTargetRepositoryViaReflection(RepositoryInformation information, Object... constructorArguments) { Class baseClass = information.getRepositoryBaseClass(); @@ -537,7 +538,7 @@ protected final R getTargetRepositoryViaReflection(RepositoryInformation inf * @return */ @SuppressWarnings("unchecked") - protected final R getTargetRepositoryViaReflection(Class baseClass, Object... constructorArguments) { + protected R getTargetRepositoryViaReflection(Class baseClass, Object... constructorArguments) { Optional> constructor = ReflectionUtils.findConstructor(baseClass, constructorArguments); return constructor.map(it -> (R) BeanUtils.instantiateClass(it, constructorArguments))