Fixes return in Javadoc.

Closes: #4255
This commit is contained in:
Michael Krog
2022-12-19 11:44:17 +01:00
committed by Christoph Strobl
parent c95cb66f99
commit 4df2c05354

View File

@@ -159,6 +159,7 @@ import com.mongodb.client.result.UpdateResult;
* @author Yadhukrishna S Pai
* @author Anton Barkan
* @author Bartłomiej Mazur
* @author Michael Krog
*/
public class MongoTemplate implements MongoOperations, ApplicationContextAware, IndexOperationsProvider {
@@ -2357,7 +2358,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
* @param query the query document that specifies the criteria used to find a record.
* @param fields the document that specifies the fields to be returned.
* @param entityClass the parameterized type of the returned list.
* @return the {@link List} of converted objects.
* @return the converted object or null if none exists.
*/
protected <T> T doFindOne(String collectionName, Document query, Document fields, Class<T> entityClass) {
return doFindOne(collectionName, query, fields, CursorPreparer.NO_OP_PREPARER, entityClass);
@@ -2372,7 +2373,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
* @param fields the document that specifies the fields to be returned.
* @param entityClass the parameterized type of the returned list.
* @param preparer the preparer used to modify the cursor on execution.
* @return the {@link List} of converted objects.
* @return the converted object or null if none exists.
* @since 2.2
*/
@SuppressWarnings("ConstantConditions")