diff --git a/pom.xml b/pom.xml
index c3245aad49..7ea6f2049d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.data
spring-data-mongodb-parent
- 4.5.0-SNAPSHOT
+ 4.5.x-GH-4839-SNAPSHOT
pom
Spring Data MongoDB
diff --git a/spring-data-mongodb-distribution/pom.xml b/spring-data-mongodb-distribution/pom.xml
index 58c63dfc97..07d80daf4c 100644
--- a/spring-data-mongodb-distribution/pom.xml
+++ b/spring-data-mongodb-distribution/pom.xml
@@ -15,7 +15,7 @@
org.springframework.data
spring-data-mongodb-parent
- 4.5.0-SNAPSHOT
+ 4.5.x-GH-4839-SNAPSHOT
../pom.xml
diff --git a/spring-data-mongodb/pom.xml b/spring-data-mongodb/pom.xml
index 98516a5ba9..0ee2725e9d 100644
--- a/spring-data-mongodb/pom.xml
+++ b/spring-data-mongodb/pom.xml
@@ -13,7 +13,7 @@
org.springframework.data
spring-data-mongodb-parent
- 4.5.0-SNAPSHOT
+ 4.5.x-GH-4839-SNAPSHOT
../pom.xml
diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AbstractReactiveMongoQuery.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AbstractReactiveMongoQuery.java
index 15ff5e5e23..0209ab05b6 100644
--- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AbstractReactiveMongoQuery.java
+++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AbstractReactiveMongoQuery.java
@@ -17,6 +17,7 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
+import reactor.util.function.Tuple2;
import java.util.ArrayList;
import java.util.List;
@@ -61,7 +62,6 @@
import org.springframework.data.repository.query.ResultProcessor;
import org.springframework.data.repository.query.ValueExpressionDelegate;
import org.springframework.data.spel.ExpressionDependencies;
-import org.springframework.data.util.TypeInformation;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.lang.Nullable;
@@ -70,7 +70,6 @@
import org.springframework.util.StringUtils;
import com.mongodb.MongoClientSettings;
-import reactor.util.function.Tuple2;
/**
* Base class for reactive {@link RepositoryQuery} implementations for MongoDB.
@@ -112,16 +111,20 @@ public AbstractReactiveMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongo
this.method = method;
this.operations = operations;
this.instantiators = new EntityInstantiators();
- this.valueExpressionDelegate = new ValueExpressionDelegate(new QueryMethodValueEvaluationContextAccessor(new StandardEnvironment(), evaluationContextProvider.getEvaluationContextProvider()), ValueExpressionParser.create(() -> expressionParser));
+ this.valueExpressionDelegate = new ValueExpressionDelegate(
+ new QueryMethodValueEvaluationContextAccessor(new StandardEnvironment(),
+ evaluationContextProvider.getEvaluationContextProvider()),
+ ValueExpressionParser.create(() -> expressionParser));
MongoEntityMetadata> metadata = method.getEntityInformation();
Class> type = metadata.getCollectionEntity().getType();
this.findOperationWithProjection = operations.query(type);
this.updateOps = operations.update(type);
- ValueEvaluationContextProvider valueContextProvider = valueExpressionDelegate.createValueContextProvider(
- method.getParameters());
- Assert.isInstanceOf(ReactiveValueEvaluationContextProvider.class, valueContextProvider, "ValueEvaluationContextProvider must be reactive");
+ ValueEvaluationContextProvider valueContextProvider = valueExpressionDelegate
+ .createValueContextProvider(method.getParameters());
+ Assert.isInstanceOf(ReactiveValueEvaluationContextProvider.class, valueContextProvider,
+ "ValueEvaluationContextProvider must be reactive");
this.valueEvaluationContextProvider = (ReactiveValueEvaluationContextProvider) valueContextProvider;
}
@@ -151,9 +154,10 @@ public AbstractReactiveMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongo
this.findOperationWithProjection = operations.query(type);
this.updateOps = operations.update(type);
- ValueEvaluationContextProvider valueContextProvider = valueExpressionDelegate.createValueContextProvider(
- method.getParameters());
- Assert.isInstanceOf(ReactiveValueEvaluationContextProvider.class, valueContextProvider, "ValueEvaluationContextProvider must be reactive");
+ ValueEvaluationContextProvider valueContextProvider = valueExpressionDelegate
+ .createValueContextProvider(method.getParameters());
+ Assert.isInstanceOf(ReactiveValueEvaluationContextProvider.class, valueContextProvider,
+ "ValueEvaluationContextProvider must be reactive");
this.valueEvaluationContextProvider = (ReactiveValueEvaluationContextProvider) valueContextProvider;
}
@@ -182,14 +186,9 @@ private Publisher