diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java index ed85da9eb5..ad9565605e 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java @@ -2606,7 +2606,7 @@ protected List doFind(String collectionName, * * @since 2.0 */ - List doFind(CollectionPreparer> collectionPreparer, String collectionName, + protected List doFind(CollectionPreparer> collectionPreparer, String collectionName, Document query, Document fields, Class sourceClass, Class targetClass, CursorPreparer preparer) { MongoPersistentEntity entity = mappingContext.getPersistentEntity(sourceClass);