Skip to content

Commit 4df2c05

Browse files
michaelkrogchristophstrobl
authored andcommitted
Fixes return in Javadoc.
Closes: #4255
1 parent c95cb66 commit 4df2c05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
* @author Yadhukrishna S Pai
160160
* @author Anton Barkan
161161
* @author Bartłomiej Mazur
162+
* @author Michael Krog
162163
*/
163164
public class MongoTemplate implements MongoOperations, ApplicationContextAware, IndexOperationsProvider {
164165

@@ -2357,7 +2358,7 @@ private CreateCollectionOptions getCreateCollectionOptions(Document document) {
23572358
* @param query the query document that specifies the criteria used to find a record.
23582359
* @param fields the document that specifies the fields to be returned.
23592360
* @param entityClass the parameterized type of the returned list.
2360-
* @return the {@link List} of converted objects.
2361+
* @return the converted object or null if none exists.
23612362
*/
23622363
protected <T> T doFindOne(String collectionName, Document query, Document fields, Class<T> entityClass) {
23632364
return doFindOne(collectionName, query, fields, CursorPreparer.NO_OP_PREPARER, entityClass);
@@ -2372,7 +2373,7 @@ protected <T> T doFindOne(String collectionName, Document query, Document fields
23722373
* @param fields the document that specifies the fields to be returned.
23732374
* @param entityClass the parameterized type of the returned list.
23742375
* @param preparer the preparer used to modify the cursor on execution.
2375-
* @return the {@link List} of converted objects.
2376+
* @return the converted object or null if none exists.
23762377
* @since 2.2
23772378
*/
23782379
@SuppressWarnings("ConstantConditions")

0 commit comments

Comments
 (0)