diff --git a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/aot/TestJpaAotRepositoryContext.java b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/aot/TestJpaAotRepositoryContext.java index bb107c5e2..ce45b194e 100644 --- a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/aot/TestJpaAotRepositoryContext.java +++ b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/aot/TestJpaAotRepositoryContext.java @@ -48,18 +48,16 @@ import org.springframework.data.repository.core.support.RepositoryComposition; public class TestJpaAotRepositoryContext extends AotRepositoryContextSupport { private final AotRepositoryInformation repositoryInformation; - private final Class repositoryInterface; private final RepositoryConfigurationSource configurationSource; public TestJpaAotRepositoryContext(BeanFactory beanFactory, Class repositoryInterface, @Nullable RepositoryComposition composition, RepositoryConfigurationSource configurationSource) { super(AotContext.from(beanFactory)); - this.repositoryInterface = repositoryInterface; + this.configurationSource = configurationSource; RepositoryMetadata metadata = AnnotationRepositoryMetadata.getMetadata(repositoryInterface); - RepositoryComposition.RepositoryFragments fragments = JpaRepositoryFragmentsContributor.DEFAULT.describe(metadata); this.repositoryInformation = new AotRepositoryInformation(metadata, SimpleJpaRepository.class,