We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f50884 commit e2360dcCopy full SHA for e2360dc
src/main/java/org/springframework/data/neo4j/core/PreparedQuery.java
@@ -81,12 +81,11 @@ public Class<T> getResultType() {
81
82
@SuppressWarnings("unchecked")
83
public synchronized Optional<BiFunction<TypeSystem, Record, T>> getOptionalMappingFunction() {
84
- Optional<BiFunction<TypeSystem, Record, T>> currentMappingFunction = Optional.ofNullable(
+ lastMappingFunction = Optional.ofNullable(
85
this.mappingFunctionSupplier)
86
.map(Supplier::get)
87
.map(f -> (BiFunction<TypeSystem, Record, T>) new AggregatingMappingFunction(f));
88
- lastMappingFunction = currentMappingFunction;
89
- return currentMappingFunction;
+ return lastMappingFunction;
90
}
91
92
synchronized boolean resultsHaveBeenAggregated() {
0 commit comments