Skip to content

Commit 8592e22

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 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;
@@ -41,6 +42,7 @@
4142
* @author Mohsin Husen
4243
* @author Mark Paluch
4344
* @author Christoph Strobl
45+
* @author Junghoon Ban
4446
*/
4547
public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
4648

@@ -106,7 +108,7 @@ protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
106108
*/
107109
@Override
108110
protected Collection<Class<?>> getIdentifyingTypes() {
109-
return Arrays.asList(ElasticsearchRepository.class, ElasticsearchRepository.class);
111+
return List.of(ElasticsearchRepository.class);
110112
}
111113

112114
/*

0 commit comments

Comments
 (0)