Skip to content

Commit 6b71d77

Browse files
michaelkrogchristophstrobl
authored andcommitted
Fixes return in Javadoc.
Closes: #4255
1 parent 10447af commit 6b71d77

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
@@ -139,6 +139,7 @@
139139
* @author Yadhukrishna S Pai
140140
* @author Anton Barkan
141141
* @author Bartłomiej Mazur
142+
* @author Michael Krog
142143
*/
143144
public class MongoTemplate implements MongoOperations, ApplicationContextAware, IndexOperationsProvider {
144145

@@ -2346,7 +2347,7 @@ private CreateCollectionOptions getCreateCollectionOptions(Document document) {
23462347
* @param query the query document that specifies the criteria used to find a record.
23472348
* @param fields the document that specifies the fields to be returned.
23482349
* @param entityClass the parameterized type of the returned list.
2349-
* @return the {@link List} of converted objects.
2350+
* @return the converted object or null if none exists.
23502351
*/
23512352
protected <T> T doFindOne(String collectionName, Document query, Document fields, Class<T> entityClass) {
23522353
return doFindOne(collectionName, query, fields, CursorPreparer.NO_OP_PREPARER, entityClass);
@@ -2361,7 +2362,7 @@ protected <T> T doFindOne(String collectionName, Document query, Document fields
23612362
* @param fields the document that specifies the fields to be returned.
23622363
* @param entityClass the parameterized type of the returned list.
23632364
* @param preparer the preparer used to modify the cursor on execution.
2364-
* @return the {@link List} of converted objects.
2365+
* @return the converted object or null if none exists.
23652366
* @since 2.2
23662367
*/
23672368
@SuppressWarnings("ConstantConditions")

0 commit comments

Comments
 (0)