Skip to content

Commit 7d3b8c8

Browse files
committed
Remove duplicate declaration of identifying type for repository.
1 parent 6350514 commit 7d3b8c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/repository/config/ElasticsearchRepositoryConfigExtension.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.Arrays;
2020
import java.util.Collection;
2121
import java.util.Collections;
22+
import java.util.List;
2223
import java.util.Locale;
2324

2425
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -106,7 +107,7 @@ protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
106107
*/
107108
@Override
108109
protected Collection<Class<?>> getIdentifyingTypes() {
109-
return Arrays.asList(ElasticsearchRepository.class, ElasticsearchRepository.class);
110+
return List.of(ElasticsearchRepository.class);
110111
}
111112

112113
/*

0 commit comments

Comments
 (0)