@ -100,7 +100,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
@@ -100,7 +100,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
Assert.notNull(dbFactory,"DbFactory must not be null!");
Assert.notNull(dbFactory,"DbFactory must not be null");
this.dbFactory=dbFactory;
this.options=options;
@ -266,7 +266,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
@@ -266,7 +266,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
Assert.notNull(dbFactory,"DbFactory must not be null!");
Assert.notNull(dbFactory,"DbFactory must not be null");
this.dbFactory=dbFactory;
}
@ -315,7 +315,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
@@ -315,7 +315,7 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
"MongoTransactionManager operates upon a MongoDbFactory. Did you forget to provide one? It's required.");
"MongoTransactionManager operates upon a MongoDbFactory; Did you forget to provide one; It's required");
returndbFactory;
}
@ -450,14 +450,14 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
@@ -450,14 +450,14 @@ public class MongoTransactionManager extends AbstractPlatformTransactionManager
@ -104,7 +104,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
@@ -104,7 +104,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
Assert.notNull(databaseFactory,"DatabaseFactory must not be null!");
Assert.notNull(databaseFactory,"DatabaseFactory must not be null");
this.databaseFactory=databaseFactory;
this.options=options;
@ -281,7 +281,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
@@ -281,7 +281,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
Assert.notNull(databaseFactory,"DatabaseFactory must not be null!");
Assert.notNull(databaseFactory,"DatabaseFactory must not be null");
this.databaseFactory=databaseFactory;
}
@ -323,7 +323,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
@@ -323,7 +323,7 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
"ReactiveMongoTransactionManager operates upon a ReactiveMongoDatabaseFactory. Did you forget to provide one? It's required.");
"ReactiveMongoTransactionManager operates upon a ReactiveMongoDatabaseFactory; Did you forget to provide one; It's required");
returndatabaseFactory;
}
@ -458,14 +458,14 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
@@ -458,14 +458,14 @@ public class ReactiveMongoTransactionManager extends AbstractReactiveTransaction
@ -255,7 +255,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@@ -255,7 +255,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@ -117,7 +117,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
@@ -117,7 +117,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
userNameAndPassword[1].toCharArray()));
}else{
thrownewIllegalArgumentException(
String.format("Cannot create MongoCredentials for unknown auth mechanism '%s'!",authMechanism));
String.format("Cannot create MongoCredentials for unknown auth mechanism '%s'",authMechanism));
}
}
}else{
@ -194,7 +194,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
@@ -194,7 +194,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
String[]optionArgs=option.split("=");
if(optionArgs.length==1){
thrownewIllegalArgumentException(String.format("Query parameter '%s' has no value!",optionArgs[0]));
thrownewIllegalArgumentException(String.format("Query parameter '%s' has no value",optionArgs[0]));
}
properties.put(optionArgs[0],optionArgs[1]);
@ -209,21 +209,21 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
@@ -209,21 +209,21 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
if(source.length!=2){
thrownewIllegalArgumentException(
"Credentials need to specify username and password like in 'username:password@database'!");
"Credentials need to specify username and password like in 'username:password@database'");
thrownewIllegalArgumentException("Credentials need to specify username!");
thrownewIllegalArgumentException("Credentials need to specify username");
}
}
@ -231,7 +231,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
@@ -231,7 +231,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
try{
returnURLDecoder.decode(it,"UTF-8");
}catch(UnsupportedEncodingExceptione){
thrownewIllegalArgumentException("o_O UTF-8 not supported!",e);
thrownewIllegalArgumentException("o_O UTF-8 not supported",e);
@ -163,7 +163,7 @@ public class MongoDbFactoryParser extends AbstractBeanDefinitionParser {
@@ -163,7 +163,7 @@ public class MongoDbFactoryParser extends AbstractBeanDefinitionParser {
@ -43,7 +43,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
@@ -43,7 +43,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
@ -68,7 +68,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
@@ -68,7 +68,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
if(serverAddresses.isEmpty()){
thrownewIllegalArgumentException(
"Could not resolve at least one server of the replica set configuration! Validate your config!");
"Could not resolve at least one server of the replica set configuration; Validate your config");
@ -125,7 +125,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
@@ -125,7 +125,7 @@ public class ServerAddressPropertyEditor extends PropertyEditorSupport {
@ -83,9 +83,9 @@ public class DefaultIndexOperations implements IndexOperations {
@@ -83,9 +83,9 @@ public class DefaultIndexOperations implements IndexOperations {
Assert.notNull(mongoDbFactory,"MongoDbFactory must not be null!");
Assert.notNull(collectionName,"Collection name can not be null!");
Assert.notNull(queryMapper,"QueryMapper must not be null!");
Assert.notNull(mongoDbFactory,"MongoDbFactory must not be null");
Assert.notNull(collectionName,"Collection name can not be null");
Assert.notNull(queryMapper,"QueryMapper must not be null");
this.collectionName=collectionName;
this.mapper=queryMapper;
@ -103,8 +103,8 @@ public class DefaultIndexOperations implements IndexOperations {
@@ -103,8 +103,8 @@ public class DefaultIndexOperations implements IndexOperations {
@ -189,7 +189,7 @@ public class DefaultIndexOperations implements IndexOperations {
@@ -189,7 +189,7 @@ public class DefaultIndexOperations implements IndexOperations {
@Nullable
public<T>Texecute(CollectionCallback<T>callback){
Assert.notNull(callback,"CollectionCallback must not be null!");
Assert.notNull(callback,"CollectionCallback must not be null");
@ -76,9 +76,9 @@ public class DefaultReactiveIndexOperations implements ReactiveIndexOperations {
@@ -76,9 +76,9 @@ public class DefaultReactiveIndexOperations implements ReactiveIndexOperations {
@ -146,7 +146,7 @@ public class MongoClientFactoryBean extends AbstractFactoryBean<MongoClient> imp
@@ -146,7 +146,7 @@ public class MongoClientFactoryBean extends AbstractFactoryBean<MongoClient> imp
@ -44,8 +44,8 @@ public class MongoDataIntegrityViolationException extends DataIntegrityViolation
@@ -44,8 +44,8 @@ public class MongoDataIntegrityViolationException extends DataIntegrityViolation
super(message);
Assert.notNull(writeResult,"WriteResult must not be null!");
Assert.notNull(actionOperation,"MongoActionOperation must not be null!");
Assert.notNull(writeResult,"WriteResult must not be null");
Assert.notNull(actionOperation,"MongoActionOperation must not be null");
@ -64,10 +64,10 @@ public abstract class MongoDatabaseFactorySupport<C> implements MongoDatabaseFac
@@ -64,10 +64,10 @@ public abstract class MongoDatabaseFactorySupport<C> implements MongoDatabaseFac
"Database name must not contain slashes, dots, spaces, quotes, or dollar signs!");
"Database name must not contain slashes, dots, spaces, quotes, or dollar signs");
this.mongoClient=mongoClient;
this.databaseName=databaseName;
@ -91,7 +91,7 @@ public abstract class MongoDatabaseFactorySupport<C> implements MongoDatabaseFac
@@ -91,7 +91,7 @@ public abstract class MongoDatabaseFactorySupport<C> implements MongoDatabaseFac
@ -216,7 +216,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -216,7 +216,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -338,7 +338,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -338,7 +338,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
Assert.notNull(entityCallbacks,"EntityCallbacks must not be null!");
Assert.notNull(entityCallbacks,"EntityCallbacks must not be null");
this.entityCallbacks=entityCallbacks;
}
@ -430,10 +430,10 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -430,10 +430,10 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -462,7 +462,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -462,7 +462,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@SuppressWarnings("ConstantConditions")
publicDocumentexecuteCommand(StringjsonCommand){
Assert.hasText(jsonCommand,"JsonCommand must not be null nor empty!");
Assert.hasText(jsonCommand,"JsonCommand must not be null nor empty");
@ -471,7 +471,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -471,7 +471,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@SuppressWarnings("ConstantConditions")
publicDocumentexecuteCommand(Documentcommand){
Assert.notNull(command,"Command must not be null!");
Assert.notNull(command,"Command must not be null");
@ -480,7 +480,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -480,7 +480,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -506,9 +506,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -506,9 +506,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -526,7 +526,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -526,7 +526,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
public<T>Texecute(DbCallback<T>action){
Assert.notNull(action,"DbCallback must not be null!");
Assert.notNull(action,"DbCallback must not be null");
@ -539,15 +539,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -539,15 +539,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -560,7 +560,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -560,7 +560,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -568,7 +568,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -568,7 +568,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -593,7 +593,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -593,7 +593,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -602,7 +602,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -602,7 +602,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -611,7 +611,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -611,7 +611,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -620,7 +620,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -620,7 +620,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -634,7 +634,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -634,7 +634,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
Assert.notNull(collectionName,"CollectionName must not be null!");
Assert.notNull(collectionName,"CollectionName must not be null");
returnexecute(db->{
@ -655,7 +655,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -655,7 +655,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
publicvoiddropCollection(StringcollectionName){
Assert.notNull(collectionName,"CollectionName must not be null!");
Assert.notNull(collectionName,"CollectionName must not be null");
@ -695,8 +695,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -695,8 +695,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -724,9 +724,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -724,9 +724,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
Assert.notNull(entityClass,"EntityClass must not be null!");
Assert.notNull(collectionName,"CollectionName must not be null!");
Assert.notNull(query,"Query must not be null");
Assert.notNull(entityClass,"EntityClass must not be null");
Assert.notNull(collectionName,"CollectionName must not be null");
if(ObjectUtils.isEmpty(query.getSortObject())){
@ -756,7 +756,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -756,7 +756,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
if(query==null){
thrownewInvalidDataAccessApiUsageException("Query passed in to exist can't be null");
}
Assert.notNull(collectionName,"CollectionName must not be null!");
Assert.notNull(collectionName,"CollectionName must not be null");
@ -775,9 +775,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -775,9 +775,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -793,9 +793,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -793,9 +793,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -812,11 +812,11 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -812,11 +812,11 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -872,15 +872,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -872,15 +872,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -934,17 +934,17 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -934,17 +934,17 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
"Both Query and FindAndModifyOptions define a collation. Please provide the collation only via one of the two.");
"Both Query and FindAndModifyOptions define a collation; Please provide the collation only via one of the two");
});
if(!options.getCollation().isPresent()){
@ -959,15 +959,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -959,15 +959,15 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1007,9 +1007,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1007,9 +1007,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1019,7 +1019,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1019,7 +1019,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
publiclongcount(Queryquery,Class<?>entityClass){
Assert.notNull(entityClass,"Entity class must not be null!");
Assert.notNull(entityClass,"Entity class must not be null");
@ -1035,8 +1035,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1035,8 +1035,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1103,7 +1103,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1103,7 +1103,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
public<T>Tinsert(TobjectToSave){
Assert.notNull(objectToSave,"ObjectToSave must not be null!");
Assert.notNull(objectToSave,"ObjectToSave must not be null");
@ -1113,8 +1113,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1113,8 +1113,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1130,7 +1130,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1130,7 +1130,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
thrownewIllegalArgumentException("Cannot use a collection here.");
thrownewIllegalArgumentException("Cannot use a collection here");
}
}
@ -1202,7 +1202,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1202,7 +1202,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1211,8 +1211,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1211,8 +1211,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1221,7 +1221,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1221,7 +1221,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1258,7 +1258,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1258,7 +1258,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1303,7 +1303,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1303,7 +1303,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
public<T>Tsave(TobjectToSave){
Assert.notNull(objectToSave,"Object to save must not be null!");
Assert.notNull(objectToSave,"Object to save must not be null");
@ -1311,8 +1311,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1311,8 +1311,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1355,7 +1355,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1355,7 +1355,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
if(result.getModifiedCount()==0){
thrownewOptimisticLockingFailureException(
String.format("Cannot save entity %s with version %s to collection %s. Has it been modified meanwhile?",
String.format("Cannot save entity %s with version %s to collection %s; Has it been modified meanwhile",
@ -1492,7 +1492,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1492,7 +1492,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1510,7 +1510,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1510,7 +1510,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1528,7 +1528,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1528,7 +1528,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1537,13 +1537,13 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1537,13 +1537,13 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1616,7 +1616,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1616,7 +1616,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@Override
publicDeleteResultremove(Objectobject){
Assert.notNull(object,"Object must not be null!");
@ -1624,8 +1624,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1624,8 +1624,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1645,7 +1645,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1645,7 +1645,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1653,8 +1653,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1653,8 +1653,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1764,11 +1764,11 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1764,11 +1764,11 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1798,7 +1798,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1798,7 +1798,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
"Both Query and MapReduceOptions define a collation. Please provide the collation only via one of the two.");
"Both Query and MapReduceOptions define a collation; Please provide the collation only via one of the two.");
});
if(mapReduceOptions.getCollation().isPresent()){
@ -1861,7 +1861,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1861,7 +1861,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1882,7 +1882,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1882,7 +1882,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -1949,9 +1949,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -1949,9 +1949,9 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -2043,10 +2043,10 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -2043,10 +2043,10 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -2123,7 +2123,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -2123,7 +2123,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
thrownewInvalidDataAccessApiUsageException(String.format("Resource %s not found!",function));
thrownewInvalidDataAccessApiUsageException(String.format("Resource %s not found",function));
}
Scannerscanner=null;
@ -2132,7 +2132,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -2132,7 +2132,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -2809,8 +2809,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -2809,8 +2809,8 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
Assert.notNull(fields,"Fields must not be null!");
Assert.notNull(query,"Query must not be null");
Assert.notNull(fields,"Fields must not be null");
this.query=query;
this.fields=fields;
@ -3197,7 +3197,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -3197,7 +3197,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@ -115,7 +115,7 @@ public class ReactiveMongoClientFactoryBean extends AbstractFactoryBean<MongoCli
@@ -115,7 +115,7 @@ public class ReactiveMongoClientFactoryBean extends AbstractFactoryBean<MongoCli
}
thrownewIllegalStateException(
"Cannot create MongoClients. One of the following is required: mongoClientSettings, connectionString or host/port");
"Cannot create MongoClients; One of the following is required: mongoClientSettings, connectionString or host/port");
@ -241,7 +241,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -241,7 +241,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -367,7 +367,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -367,7 +367,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.notNull(entityCallbacks,"EntityCallbacks must not be null!");
Assert.notNull(entityCallbacks,"EntityCallbacks must not be null");
this.entityCallbacks=entityCallbacks;
}
@ -468,7 +468,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -468,7 +468,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -481,7 +481,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -481,7 +481,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -500,7 +500,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -500,7 +500,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.notNull(callback,"ReactiveCollectionCallback must not be null!");
Assert.notNull(callback,"ReactiveCollectionCallback must not be null");
returncreateFlux(collectionName,callback);
}
@ -565,7 +565,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -565,7 +565,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -580,7 +580,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -580,7 +580,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -595,8 +595,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -595,8 +595,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -614,8 +614,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -614,8 +614,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -633,7 +633,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -633,7 +633,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -658,7 +658,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -658,7 +658,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -795,11 +795,11 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -795,11 +795,11 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -839,7 +839,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -839,7 +839,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -862,12 +862,12 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -862,12 +862,12 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -925,11 +925,11 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -925,11 +925,11 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Class<T>returnType){
if(near==null){
thrownewInvalidDataAccessApiUsageException("NearQuery must not be null!");
thrownewInvalidDataAccessApiUsageException("NearQuery must not be null");
}
if(entityClass==null){
thrownewInvalidDataAccessApiUsageException("Entity class must not be null!");
thrownewInvalidDataAccessApiUsageException("Entity class must not be null");
@ -966,14 +966,14 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -966,14 +966,14 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
"Both Query and FindAndModifyOptions define a collation. Please provide the collation only via one of the two.");
"Both Query and FindAndModifyOptions define a collation; Please provide the collation only via one of the two");
});
if(!optionsToUse.getCollation().isPresent()){
@ -988,15 +988,15 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -988,15 +988,15 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1053,7 +1053,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1053,7 +1053,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1066,8 +1066,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1066,8 +1066,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.hasText(collectionName,"Collection name must not be null or empty!");
Assert.notNull(query,"Query must not be null");
Assert.hasText(collectionName,"Collection name must not be null or empty");
returncreateMono(collectionName,collection->{
@ -1152,7 +1152,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1152,7 +1152,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.notNull(objectToSave,"Mono to insert must not be null!");
Assert.notNull(objectToSave,"Mono to insert must not be null");
returnobjectToSave.flatMap(this::insert);
}
@ -1165,7 +1165,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1165,7 +1165,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1173,7 +1173,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1173,7 +1173,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@Override
public<T>Mono<T>insert(TobjectToSave){
Assert.notNull(objectToSave,"Object to insert must not be null!");
Assert.notNull(objectToSave,"Object to insert must not be null");
@ -1182,7 +1182,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1182,7 +1182,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1257,7 +1257,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1257,7 +1257,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1300,7 +1300,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1300,7 +1300,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.notNull(objectToSave,"Mono to save must not be null!");
Assert.notNull(objectToSave,"Mono to save must not be null");
returnobjectToSave.flatMap(this::save);
}
@ -1308,7 +1308,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1308,7 +1308,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1316,15 +1316,15 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1316,15 +1316,15 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@Override
public<T>Mono<T>save(TobjectToSave){
Assert.notNull(objectToSave,"Object to save must not be null!");
Assert.notNull(objectToSave,"Object to save must not be null");
@ -1568,7 +1568,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1568,7 +1568,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
if(query.isSorted()&&LOGGER.isWarnEnabled()){
LOGGER.warn(String.format("%s does not support sort ('%s'). Please use findAndModify() instead.",
LOGGER.warn(String.format("%s does not support sort ('%s'); Please use findAndModify() instead",
@ -1682,7 +1682,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1682,7 +1682,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@Override
publicMono<DeleteResult>remove(Objectobject){
Assert.notNull(object,"Object must not be null!");
@ -1690,8 +1690,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1690,8 +1690,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1711,7 +1711,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1711,7 +1711,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
String.format("Cannot autogenerate id of type %s for entity of type %s!",property.getType().getName(),
String.format("Cannot autogenerate id of type %s for entity of type %s",property.getType().getName(),
value.getClass().getName()));
}
}
@ -1735,10 +1735,10 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1735,10 +1735,10 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1895,13 +1895,13 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1895,13 +1895,13 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -1927,7 +1927,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1927,7 +1927,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
"Both Query and MapReduceOptions define a limit. Please provide the limit only via one of the two.");
"Both Query and MapReduceOptions define a limit; Please provide the limit only via one of the two.");
}
if(filterQuery.getLimit()>0){
@ -1943,7 +1943,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1943,7 +1943,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
"Both Query and MapReduceOptions define a collation. Please provide the collation only via one of the two.");
"Both Query and MapReduceOptions define a collation; Please provide the collation only via one of the two.");
});
if(options.getCollation().isPresent()){
@ -1992,7 +1992,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -1992,7 +1992,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
if(ResourceUtils.isUrl(function)){
thrownewIllegalArgumentException(String.format(
"Blocking accessing to resource %s is not allowed using reactive infrastructure. You may load the resource at startup and cache its value.",
"Blocking accessing to resource %s is not allowed using reactive infrastructure; You may load the resource at startup and cache its value.",
function));
}
}
@ -2850,8 +2850,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -2850,8 +2850,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
Assert.notNull(reader,"EntityReader must not be null!");
Assert.notNull(type,"Entity type must not be null!");
Assert.notNull(reader,"EntityReader must not be null");
Assert.notNull(type,"Entity type must not be null");
this.reader=reader;
this.type=type;
@ -2939,7 +2939,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -2939,7 +2939,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -77,10 +77,10 @@ public class SimpleReactiveMongoDatabaseFactory implements DisposableBean, React
@@ -77,10 +77,10 @@ public class SimpleReactiveMongoDatabaseFactory implements DisposableBean, React
"Database name must not contain slashes, dots, spaces, quotes, or dollar signs!");
"Database name must not contain slashes, dots, spaces, quotes, or dollar signs");
this.mongo=client;
this.databaseName=databaseName;
@ -103,7 +103,7 @@ public class SimpleReactiveMongoDatabaseFactory implements DisposableBean, React
@@ -103,7 +103,7 @@ public class SimpleReactiveMongoDatabaseFactory implements DisposableBean, React
@ -48,8 +48,8 @@ public class AggregationResults<T> implements Iterable<T> {
@@ -48,8 +48,8 @@ public class AggregationResults<T> implements Iterable<T> {
@ -73,7 +73,7 @@ public class AggregationResults<T> implements Iterable<T> {
@@ -73,7 +73,7 @@ public class AggregationResults<T> implements Iterable<T> {
*/
@Nullable
publicTgetUniqueMappedResult(){
Assert.isTrue(mappedResults.size()<2,"Expected unique result or null, but got more than one!");
Assert.isTrue(mappedResults.size()<2,"Expected unique result or null, but got more than one");
@ -60,7 +60,7 @@ public class AggregationSpELExpression implements AggregationExpression {
@@ -60,7 +60,7 @@ public class AggregationSpELExpression implements AggregationExpression {
@ -50,7 +50,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
@@ -50,7 +50,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
super(groupByField);
Assert.isTrue(buckets>0,"Number of buckets must be greater 0!");
Assert.isTrue(buckets>0,"Number of buckets must be greater 0");
this.buckets=buckets;
this.granularity=null;
@ -66,7 +66,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
@@ -66,7 +66,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
super(groupByExpression);
Assert.isTrue(buckets>0,"Number of buckets must be greater 0!");
Assert.isTrue(buckets>0,"Number of buckets must be greater 0");
this.buckets=buckets;
this.granularity=null;
@ -117,7 +117,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
@@ -117,7 +117,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
*/
publicBucketAutoOperationwithBuckets(intbuckets){
Assert.isTrue(buckets>0,"Number of buckets must be greater 0!");
Assert.isTrue(buckets>0,"Number of buckets must be greater 0");
@ -132,7 +132,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
@@ -132,7 +132,7 @@ public class BucketAutoOperation extends BucketOperationSupport<BucketAutoOperat
@ -113,7 +113,7 @@ public class BucketOperation extends BucketOperationSupport<BucketOperation, Buc
@@ -113,7 +113,7 @@ public class BucketOperation extends BucketOperationSupport<BucketOperation, Buc
@ -126,8 +126,8 @@ public class BucketOperation extends BucketOperationSupport<BucketOperation, Buc
@@ -126,8 +126,8 @@ public class BucketOperation extends BucketOperationSupport<BucketOperation, Buc
@ -51,7 +51,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -51,7 +51,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
Assert.notNull(groupByField,"Group by field must not be null!");
Assert.notNull(groupByField,"Group by field must not be null");
this.groupByField=groupByField;
this.groupByExpression=null;
@ -65,7 +65,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -65,7 +65,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
Assert.notNull(groupByExpression,"Group by AggregationExpression must not be null!");
Assert.notNull(groupByExpression,"Group by AggregationExpression must not be null");
this.groupByExpression=groupByExpression;
this.groupByField=null;
@ -89,8 +89,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -89,8 +89,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@ -213,8 +213,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -213,8 +213,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
*/
protectedOutputBuilder(Objectvalue,Toperation){
Assert.notNull(value,"Value must not be null or empty!");
Assert.notNull(operation,"ProjectionOperation must not be null!");
Assert.notNull(value,"Value must not be null or empty");
Assert.notNull(operation,"ProjectionOperation must not be null");
this.value=value;
this.operation=operation;
@ -321,8 +321,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -321,8 +321,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
*/
publicBapply(Stringoperation,Object...values){
Assert.hasText(operation,"Operation must not be empty or null!");
Assert.notNull(value,"Values must not be null!");
Assert.hasText(operation,"Operation must not be empty or null");
@ -355,7 +355,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -355,7 +355,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
}
if(valueinstanceofField){
thrownewIllegalStateException("Cannot add a field as top-level output. Use accumulator expressions.");
thrownewIllegalStateException("Cannot add a field as top-level output; Use accumulator expressions");
}
returnthis.operation
@ -437,7 +437,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -437,7 +437,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
*/
protectedOutputsand(Outputoutput){
Assert.notNull(output,"BucketOutput must not be null!");
Assert.notNull(output,"BucketOutput must not be null");
returnnewOutputs(this.outputs,output);
}
@ -480,7 +480,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -480,7 +480,7 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
*/
protectedOutput(Fieldfield){
Assert.notNull(field,"Field must not be null!");
Assert.notNull(field,"Field must not be null");
this.field=newExposedField(field,true);
}
@ -516,8 +516,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -516,8 +516,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
super(Fields.field(operation));
Assert.hasText(operation,"Operation must not be null or empty!");
Assert.notNull(values,"Values must not be null!");
Assert.hasText(operation,"Operation must not be null or empty");
Assert.notNull(values,"Values must not be null");
this.operation=operation;
this.values=newArrayList<Object>(values);
@ -616,8 +616,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
@@ -616,8 +616,8 @@ public abstract class BucketOperationSupport<T extends BucketOperationSupport<T,
super(Fields.field(expression));
Assert.hasText(expression,"Expression must not be null!");
Assert.notNull(parameters,"Parameters must not be null!");
Assert.hasText(expression,"Expression must not be null");
Assert.notNull(parameters,"Parameters must not be null");
@ -39,7 +39,7 @@ public class CountOperation implements FieldsExposingAggregationOperation {
@@ -39,7 +39,7 @@ public class CountOperation implements FieldsExposingAggregationOperation {
*/
publicCountOperation(StringfieldName){
Assert.hasText(fieldName,"Field name must not be null or empty!");
Assert.hasText(fieldName,"Field name must not be null or empty");
@ -109,7 +109,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
@@ -109,7 +109,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
@ -139,7 +139,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
@@ -139,7 +139,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
*/
publicExposedFieldsand(ExposedFieldfield){
Assert.notNull(field,"Exposed field must not be null!");
Assert.notNull(field,"Exposed field must not be null");
@ -361,7 +361,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
@@ -361,7 +361,7 @@ public final class ExposedFields implements Iterable<ExposedField> {
*/
publicDirectFieldReference(ExposedFieldfield){
Assert.notNull(field,"ExposedField must not be null!");
Assert.notNull(field,"ExposedField must not be null");
@ -72,8 +72,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@@ -72,8 +72,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@ -118,7 +118,7 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@@ -118,7 +118,7 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
*/
publicFacetOperationas(StringfieldName){
Assert.hasText(fieldName,"FieldName must not be null or empty!");
Assert.hasText(fieldName,"FieldName must not be null or empty");
@ -178,8 +178,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@@ -178,8 +178,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@ -207,8 +207,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@@ -207,8 +207,8 @@ public class FacetOperation implements FieldsExposingAggregationOperation {
@ -64,8 +64,8 @@ public class GeoNearOperation implements AggregationOperation {
@@ -64,8 +64,8 @@ public class GeoNearOperation implements AggregationOperation {
@ -225,7 +225,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -225,7 +225,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@Override
publicStartWithBuilderfrom(StringcollectionName){
Assert.hasText(collectionName,"CollectionName must not be null or empty!");
Assert.hasText(collectionName,"CollectionName must not be null or empty");
this.from=collectionName;
returnthis;
@ -234,8 +234,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -234,8 +234,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@ -250,8 +250,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -250,8 +250,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
Assert.notNull(expressions,"AggregationExpressions must not be null!");
Assert.noNullElements(expressions,"AggregationExpressions must not contain null elements!");
Assert.notNull(expressions,"AggregationExpressions must not be null");
Assert.noNullElements(expressions,"AggregationExpressions must not contain null elements");
this.startWith=Arrays.asList(expressions);
returnthis;
@ -260,8 +260,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -260,8 +260,8 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@ -301,7 +301,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -301,7 +301,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
Assert.hasText(fieldName,"ConnectFrom must not be null or empty!");
Assert.hasText(fieldName,"ConnectFrom must not be null or empty");
this.connectFrom=fieldName;
returnthis;
@ -310,7 +310,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -310,7 +310,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@ -346,7 +346,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -346,7 +346,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
Assert.isTrue(numberOfRecursions>=0,"Max depth must be >= 0!");
Assert.isTrue(numberOfRecursions>=0,"Max depth must be >= 0");
this.maxDepth=numberOfRecursions;
returnthis;
@ -360,7 +360,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -360,7 +360,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
Assert.hasText(fieldName,"Depth field name must not be null or empty!");
Assert.hasText(fieldName,"Depth field name must not be null or empty");
this.depthField=Fields.field(fieldName);
returnthis;
@ -374,7 +374,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -374,7 +374,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
Assert.notNull(criteriaDefinition,"CriteriaDefinition must not be null!");
Assert.notNull(criteriaDefinition,"CriteriaDefinition must not be null");
this.restrictSearchWithMatch=criteriaDefinition;
returnthis;
@ -389,7 +389,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
@@ -389,7 +389,7 @@ public class GraphLookupOperation implements InheritsFieldsAggregationOperation
*/
publicGraphLookupOperationas(StringfieldName){
Assert.hasText(fieldName,"As field name must not be null or empty!");
Assert.hasText(fieldName,"As field name must not be null or empty");
@ -80,8 +80,8 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@@ -80,8 +80,8 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@ -117,8 +117,8 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@@ -117,8 +117,8 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
Assert.notNull(groupOperation,"GroupOperation must not be null!");
Assert.notNull(operation,"Operation must not be null!");
Assert.notNull(groupOperation,"GroupOperation must not be null");
Assert.notNull(operation,"Operation must not be null");
this.groupOperation=groupOperation;
this.operation=operation;
@ -168,7 +168,7 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@@ -168,7 +168,7 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@ -39,7 +39,7 @@ public class LimitOperation implements AggregationOperation {
@@ -39,7 +39,7 @@ public class LimitOperation implements AggregationOperation {
*/
publicLimitOperation(longmaxElements){
Assert.isTrue(maxElements>=0,"Maximum number of elements must be greater or equal to zero!");
Assert.isTrue(maxElements>=0,"Maximum number of elements must be greater or equal to zero");
@ -49,10 +49,10 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@@ -49,10 +49,10 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
Assert.notNull(localField,"LocalField must not be null!");
Assert.notNull(foreignField,"ForeignField must not be null!");
Assert.notNull(as,"As must not be null!");
Assert.notNull(from,"From must not be null");
Assert.notNull(localField,"LocalField must not be null");
Assert.notNull(foreignField,"ForeignField must not be null");
Assert.notNull(as,"As must not be null");
this.from=from;
this.localField=localField;
@ -155,7 +155,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@@ -155,7 +155,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@Override
publicLocalFieldBuilderfrom(Stringname){
Assert.hasText(name,"'From' must not be null or empty!");
Assert.hasText(name,"'From' must not be null or empty");
from=Fields.field(name);
returnthis;
}
@ -163,7 +163,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@@ -163,7 +163,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@Override
publicLookupOperationas(Stringname){
Assert.hasText(name,"'As' must not be null or empty!");
Assert.hasText(name,"'As' must not be null or empty");
@ -171,7 +171,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@@ -171,7 +171,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@Override
publicAsBuilderforeignField(Stringname){
Assert.hasText(name,"'ForeignField' must not be null or empty!");
Assert.hasText(name,"'ForeignField' must not be null or empty");
foreignField=Fields.field(name);
returnthis;
}
@ -179,7 +179,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@@ -179,7 +179,7 @@ public class LookupOperation implements FieldsExposingAggregationOperation, Inhe
@Override
publicForeignFieldBuilderlocalField(Stringname){
Assert.hasText(name,"'LocalField' must not be null or empty!");
Assert.hasText(name,"'LocalField' must not be null or empty");
@ -47,7 +47,7 @@ public class MatchOperation implements AggregationOperation {
@@ -47,7 +47,7 @@ public class MatchOperation implements AggregationOperation {
Assert.notNull(criteriaDefinition,"Criteria must not be null!");
Assert.notNull(criteriaDefinition,"Criteria must not be null");
this.criteriaDefinition=criteriaDefinition;
this.expression=null;
@ -61,7 +61,7 @@ public class MatchOperation implements AggregationOperation {
@@ -61,7 +61,7 @@ public class MatchOperation implements AggregationOperation {
@ -62,8 +62,8 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@@ -62,8 +62,8 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
Assert.notNull(into,"Into must not be null! Please provide a target collection.");
Assert.notNull(on,"On must not be null! Use UniqueMergeId.id() instead.");
Assert.notNull(into,"Into must not be null Please provide a target collection");
Assert.notNull(on,"On must not be null Use UniqueMergeId.id() instead");
this.into=into;
this.on=on;
@ -167,7 +167,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@@ -167,7 +167,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
Assert.noNullElements(fields,"Fields must not contain null values!");
Assert.noNullElements(fields,"Fields must not contain null values");
if(ObjectUtils.isEmpty(fields)){
returnid();
@ -225,7 +225,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@@ -225,7 +225,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
Assert.hasText(collection,"Collection must not be null nor empty!");
Assert.hasText(collection,"Collection must not be null nor empty");
this.database=database;
this.collection=collection;
@ -360,7 +360,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@@ -360,7 +360,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
privateWhenDocumentsDontMatch(Stringvalue){
Assert.notNull(value,"Value must not be null!");
Assert.notNull(value,"Value must not be null");
this.value=value;
}
@ -432,7 +432,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@@ -432,7 +432,7 @@ public class MergeOperation implements FieldsExposingAggregationOperation, Inher
@ -57,7 +57,7 @@ public class OutOperation implements AggregationOperation {
@@ -57,7 +57,7 @@ public class OutOperation implements AggregationOperation {
Assert.notNull(collectionName,"Collection name must not be null!");
Assert.notNull(collectionName,"Collection name must not be null");
this.databaseName=databaseName;
this.collectionName=collectionName;
@ -128,7 +128,7 @@ public class OutOperation implements AggregationOperation {
@@ -128,7 +128,7 @@ public class OutOperation implements AggregationOperation {
Assert.notNull(fields,"Fields must not be null!");
Assert.notNull(fields,"Fields must not be null");
DocumentuniqueKey=newDocument();
fields.forEach(it->uniqueKey.append(it,1));
@ -146,7 +146,7 @@ public class OutOperation implements AggregationOperation {
@@ -146,7 +146,7 @@ public class OutOperation implements AggregationOperation {
@ -193,7 +193,7 @@ public class OutOperation implements AggregationOperation {
@@ -193,7 +193,7 @@ public class OutOperation implements AggregationOperation {
returnnewDocument("$out",collectionName);
}
Assert.state(mode!=null,"Mode must not be null!");
privatestaticfinalStringEXCLUSION_ERROR="Exclusion of field %s not allowed. Projections by the mongodb "
+"aggregation framework only support the exclusion of the %s field!";
privatestaticfinalStringEXCLUSION_ERROR="Exclusion of field %s not allowed; Projections by the mongodb"
+"aggregation framework only support the exclusion of the %s field";
privatefinalList<Projection>projections;
@ -93,8 +93,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -93,8 +93,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -275,8 +275,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -275,8 +275,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(value,"value must not be null or empty!");
Assert.notNull(operation,"ProjectionOperation must not be null!");
Assert.notNull(value,"value must not be null or empty");
Assert.notNull(operation,"ProjectionOperation must not be null");
this.value=value;
this.operation=operation;
@ -390,8 +390,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -390,8 +390,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
super(field);
Assert.hasText(expression,"Expression must not be null!");
Assert.notNull(parameters,"Parameters must not be null!");
Assert.hasText(expression,"Expression must not be null");
Assert.notNull(parameters,"Parameters must not be null");
this.expression=expression;
this.params=parameters.clone();
@ -418,8 +418,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -418,8 +418,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -502,14 +502,14 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -502,14 +502,14 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -533,7 +533,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -533,7 +533,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -545,7 +545,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -545,7 +545,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(number,"Number must not be null!");
Assert.notNull(number,"Number must not be null");
returnproject("subtract",number);
}
@ -572,7 +572,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -572,7 +572,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(expression,"Expression must not be null!");
Assert.notNull(expression,"Expression must not be null");
returnproject("subtract",expression);
}
@ -611,7 +611,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -611,7 +611,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(expression,"Expression must not be null!");
Assert.notNull(expression,"Expression must not be null");
returnproject("multiply",expression);
}
@ -624,7 +624,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -624,7 +624,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero!");
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero");
returnproject("divide",number);
}
@ -651,7 +651,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -651,7 +651,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(expression,"Expression must not be null!");
Assert.notNull(expression,"Expression must not be null");
returnproject("divide",expression);
}
@ -665,7 +665,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -665,7 +665,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero!");
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero");
returnproject("mod",number);
}
@ -692,7 +692,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -692,7 +692,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(expression,"Expression must not be null!");
Assert.notNull(expression,"Expression must not be null");
returnproject("mod",expression);
}
@ -835,7 +835,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -835,7 +835,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notEmpty(arrays,"Arrays must not be null or empty!");
Assert.notEmpty(arrays,"Arrays must not be null or empty");
returnproject("setEquals",Fields.fields(arrays));
}
@ -849,7 +849,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -849,7 +849,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -863,7 +863,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -863,7 +863,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notEmpty(arrays,"Arrays must not be null or empty!");
Assert.notEmpty(arrays,"Arrays must not be null or empty");
returnproject("setUnion",Fields.fields(arrays));
}
@ -877,7 +877,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -877,7 +877,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -891,7 +891,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -891,7 +891,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -1270,7 +1270,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1270,7 +1270,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
privateStringgetRequiredName(){
Assert.state(name!=null,"Projection field name must not be null!");
Assert.state(name!=null,"Projection field name must not be null");
returnname;
}
@ -1368,7 +1368,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1368,7 +1368,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -1437,8 +1437,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1437,8 +1437,8 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
super(field);
Assert.hasText(operation,"Operation must not be null or empty!");
Assert.notNull(values,"Values must not be null!");
Assert.hasText(operation,"Operation must not be null or empty");
Assert.notNull(values,"Values must not be null");
this.field=field;
this.operation=operation;
@ -1655,7 +1655,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1655,7 +1655,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
*/
publicProjection(Fieldfield){
Assert.notNull(field,"Field must not be null!");
Assert.notNull(field,"Field must not be null");
this.field=newExposedField(field,true);
}
@ -1759,7 +1759,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1759,7 +1759,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(expression,"AggregationExpression must not be null!");
Assert.notNull(expression,"AggregationExpression must not be null");
this.projections.add(expression);
returnthis;
@ -1773,7 +1773,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -1773,7 +1773,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -63,7 +63,7 @@ public class RedactOperation implements AggregationOperation {
@@ -63,7 +63,7 @@ public class RedactOperation implements AggregationOperation {
Assert.notNull(condition,"Condition must not be null!");
Assert.notNull(condition,"Condition must not be null");
this.condition=condition;
}
@ -237,7 +237,7 @@ public class RedactOperation implements AggregationOperation {
@@ -237,7 +237,7 @@ public class RedactOperation implements AggregationOperation {
}
thrownewIllegalArgumentException(String.format(
"Invalid Condition. Expected CriteriaDefinition, AggregationExpression or Document but was %s.",when));
"Invalid Condition; Expected CriteriaDefinition, AggregationExpression or Document but was %s",when));
@ -66,7 +66,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -66,7 +66,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
Assert.notNull(replacement,"Replacement must not be null!");
Assert.notNull(replacement,"Replacement must not be null");
this.replacement=replacement;
}
@ -152,7 +152,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -152,7 +152,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@ -240,8 +240,8 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -240,8 +240,8 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
Assert.notNull(currentOperation,"Current ReplaceRootDocumentOperation must not be null!");
Assert.notNull(value,"Value must not be null!");
Assert.notNull(currentOperation,"Current ReplaceRootDocumentOperation must not be null");
Assert.notNull(value,"Value must not be null");
this.currentOperation=currentOperation;
this.value=value;
@ -287,7 +287,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -287,7 +287,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
Assert.notNull(aggregationExpression,"AggregationExpression must not be null!");
Assert.notNull(aggregationExpression,"AggregationExpression must not be null");
this.aggregationExpression=aggregationExpression;
}
@ -311,7 +311,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -311,7 +311,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
*/
protectedFieldReplacement(Fieldfield){
Assert.notNull(field,"Field must not be null!");
Assert.notNull(field,"Field must not be null");
this.field=field;
}
@ -344,7 +344,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -344,7 +344,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
Assert.notNull(contributor,"ReplacementContributor must not be null!");
Assert.notNull(contributor,"ReplacementContributor must not be null");
replacements=Collections.singleton(contributor);
}
@ -452,7 +452,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -452,7 +452,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
*/
publicDocumentContributor(Objectvalue){
Assert.notNull(value,"Value must not be null!");
Assert.notNull(value,"Value must not be null");
this.value=value;
}
@ -482,7 +482,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -482,7 +482,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
*/
publicFieldContributorSupport(Fieldfield){
Assert.notNull(field,"Field must not be null!");
Assert.notNull(field,"Field must not be null");
this.field=newExposedField(field,true);
}
@ -514,7 +514,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -514,7 +514,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
super(field);
Assert.notNull(value,"Value must not be null!");
Assert.notNull(value,"Value must not be null");
this.value=value;
}
@ -547,7 +547,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
@@ -547,7 +547,7 @@ public class ReplaceRootOperation implements FieldsExposingAggregationOperation
super(field);
Assert.notNull(aggregationExpression,"AggregationExpression must not be null!");
Assert.notNull(aggregationExpression,"AggregationExpression must not be null");
@ -61,7 +61,7 @@ public class ReplaceWithOperation extends ReplaceRootOperation {
@@ -61,7 +61,7 @@ public class ReplaceWithOperation extends ReplaceRootOperation {
@ -38,7 +38,7 @@ public class SampleOperation implements AggregationOperation {
@@ -38,7 +38,7 @@ public class SampleOperation implements AggregationOperation {
*/
publicSampleOperation(longsampleSize){
Assert.isTrue(sampleSize>0,"Sample size must be greater than zero!");
Assert.isTrue(sampleSize>0,"Sample size must be greater than zero");