diff --git a/pom.xml b/pom.xml
index 28dc5c96c1..559135fc86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.data
spring-data-mongodb-parent
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
pom
Spring Data MongoDB
diff --git a/spring-data-mongodb-benchmarks/pom.xml b/spring-data-mongodb-benchmarks/pom.xml
index c2ff37b35c..0d41356f05 100644
--- a/spring-data-mongodb-benchmarks/pom.xml
+++ b/spring-data-mongodb-benchmarks/pom.xml
@@ -7,7 +7,7 @@
org.springframework.data
spring-data-mongodb-parent
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
../pom.xml
diff --git a/spring-data-mongodb-cross-store/pom.xml b/spring-data-mongodb-cross-store/pom.xml
index fd36f227c0..515ae238e6 100644
--- a/spring-data-mongodb-cross-store/pom.xml
+++ b/spring-data-mongodb-cross-store/pom.xml
@@ -6,7 +6,7 @@
org.springframework.data
spring-data-mongodb-parent
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
../pom.xml
@@ -50,7 +50,7 @@
org.springframework.data
spring-data-mongodb
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
diff --git a/spring-data-mongodb-distribution/pom.xml b/spring-data-mongodb-distribution/pom.xml
index cb441dd8ef..ce6db1514a 100644
--- a/spring-data-mongodb-distribution/pom.xml
+++ b/spring-data-mongodb-distribution/pom.xml
@@ -13,7 +13,7 @@
org.springframework.data
spring-data-mongodb-parent
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
../pom.xml
diff --git a/spring-data-mongodb/pom.xml b/spring-data-mongodb/pom.xml
index f3c85a046a..fde95d0c26 100644
--- a/spring-data-mongodb/pom.xml
+++ b/spring-data-mongodb/pom.xml
@@ -11,7 +11,7 @@
org.springframework.data
spring-data-mongodb-parent
- 2.2.0.BUILD-SNAPSHOT
+ 2.2.0.DATAMONGO-2150-SNAPSHOT
../pom.xml
diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java
index 0ea20fbf82..470bf84d96 100644
--- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java
+++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java
@@ -395,7 +395,7 @@ public Mono executeCommand(String jsonCommand) {
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#executeCommand(org.bson.Document)
*/
- public Mono executeCommand(final Document command) {
+ public Mono executeCommand(Document command) {
return executeCommand(command, null);
}
@@ -403,7 +403,7 @@ public Mono executeCommand(final Document command) {
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#executeCommand(org.bson.Document, com.mongodb.ReadPreference)
*/
- public Mono executeCommand(final Document command, @Nullable ReadPreference readPreference) {
+ public Mono executeCommand(Document command, @Nullable ReadPreference readPreference) {
Assert.notNull(command, "Command must not be null!");
@@ -552,7 +552,7 @@ public Flux createFlux(ReactiveDatabaseCallback callback) {
* @param callback must not be {@literal null}
* @return a {@link Mono} wrapping the {@link ReactiveDatabaseCallback}.
*/
- public Mono createMono(final ReactiveDatabaseCallback callback) {
+ public Mono createMono(ReactiveDatabaseCallback callback) {
Assert.notNull(callback, "ReactiveDatabaseCallback must not be null!");
@@ -637,7 +637,7 @@ public Mono> createCollection(String collectionName,
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#getCollection(java.lang.String)
*/
- public MongoCollection getCollection(final String collectionName) {
+ public MongoCollection getCollection(String collectionName) {
return execute((MongoDatabaseCallback>) db -> db.getCollection(collectionName));
}
@@ -653,7 +653,7 @@ public Mono collectionExists(Class entityClass) {
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#collectionExists(java.lang.String)
*/
- public Mono collectionExists(final String collectionName) {
+ public Mono collectionExists(String collectionName) {
return createMono(db -> Flux.from(db.listCollectionNames()) //
.filter(s -> s.equals(collectionName)) //
.map(s -> true) //
@@ -672,7 +672,7 @@ public Mono dropCollection(Class entityClass) {
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#dropCollection(java.lang.String)
*/
- public Mono dropCollection(final String collectionName) {
+ public Mono dropCollection(String collectionName) {
return createMono(collectionName, MongoCollection::drop).doOnSuccess(success -> {
if (LOGGER.isDebugEnabled()) {
@@ -1005,15 +1005,15 @@ protected Flux> geoNear(NearQuery near, Class> entityClass, S
}
String collection = StringUtils.hasText(collectionName) ? collectionName : determineCollectionName(entityClass);
- Document nearDbObject = near.toDocument();
+ Document nearDocument = near.toDocument();
Document command = new Document("geoNear", collection);
- command.putAll(nearDbObject);
+ command.putAll(nearDocument);
return Flux.defer(() -> {
- if (nearDbObject.containsKey("query")) {
- Document query = (Document) nearDbObject.get("query");
+ if (nearDocument.containsKey("query")) {
+ Document query = (Document) nearDocument.get("query");
command.put("query", queryMapper.getMappedObject(query, getPersistentEntity(entityClass)));
}
@@ -1022,7 +1022,7 @@ protected Flux> geoNear(NearQuery near, Class> entityClass, S
entityClass, collectionName);
}
- GeoNearResultDbObjectCallback callback = new GeoNearResultDbObjectCallback<>(
+ GeoNearResultDocumentCallback callback = new GeoNearResultDocumentCallback<>(
new ProjectingReadCallback<>(mongoConverter, entityClass, returnType, collectionName), near.getMetric());
return executeCommand(command, this.readPreference).flatMapMany(document -> {
@@ -1143,7 +1143,7 @@ public Mono count(Query query, Class> entityClass) {
* (non-Javadoc)
* @see org.springframework.data.mongodb.core.ReactiveMongoOperations#count(org.springframework.data.mongodb.core.query.Query, java.lang.String)
*/
- public Mono count(final Query query, String collectionName) {
+ public Mono count(Query query, String collectionName) {
return count(query, null, collectionName);
}
@@ -1234,23 +1234,22 @@ public Mono insert(T objectToSave, String collectionName) {
protected Mono doInsert(String collectionName, T objectToSave, MongoWriter