DATAMONGO-1718 - Fix MongoTemplate::findAllAndRemove(Query,String) delegating to wrong overload.

Original Pull Request: #469 (by Borislav Rangelov).
This commit is contained in:
Borislav Rangelov
2017-06-15 21:38:36 +03:00
committed by Christoph Strobl
parent 61e3cb1d75
commit 18355aed5e

View File

@@ -139,6 +139,7 @@ import com.mongodb.util.JSONParseException;
* @author Christoph Strobl
* @author Doménique Tilleuil
* @author Laszlo Csontos
* @author Borislav Rangelov
*/
@SuppressWarnings("deprecation")
public class MongoTemplate implements MongoOperations, ApplicationContextAware {
@@ -1498,7 +1499,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware {
*/
@Override
public <T> List<T> findAllAndRemove(Query query, String collectionName) {
return findAndRemove(query, null, collectionName);
return findAllAndRemove(query, null, collectionName);
}
/*
@@ -2124,7 +2125,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware {
* Returns all identifiers for the given documents. Will augment the given identifiers and fill in only the ones that
* are {@literal null} currently. This would've been better solved in {@link #insertDBObjectList(String, List)}
* directly but would require a signature change of that method.
*
*
* @param ids
* @param documents
* @return TODO: Remove for 2.0 and change method signature of {@link #insertDBObjectList(String, List)}.