Skip to content

Commit 585299c

Browse files
authored
DATAES-995 - Code Cleanup after DATACMNS-1838.
Original PR: spring-projects#570
1 parent d25f7fe commit 585299c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntity.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public class SimpleElasticsearchPersistentEntity<T> extends BasicPersistentEntit
7979
private boolean createIndexAndMapping;
8080
private final Map<String, ElasticsearchPersistentProperty> fieldNamePropertyCache = new ConcurrentHashMap<>();
8181

82-
private EvaluationContextProvider evaluationContextProvider = EvaluationContextProvider.DEFAULT;;
8382
private final ConcurrentHashMap<String, Expression> indexNameExpressions = new ConcurrentHashMap<>();
8483
private final Lazy<EvaluationContext> indexNameEvaluationContext = Lazy.of(this::getIndexNameEvaluationContext);
8584

@@ -321,13 +320,6 @@ public ElasticsearchPersistentProperty getJoinFieldProperty() {
321320
}
322321

323322
// region SpEL handling
324-
325-
@Override
326-
public void setEvaluationContextProvider(EvaluationContextProvider provider) {
327-
super.setEvaluationContextProvider(provider);
328-
this.evaluationContextProvider = provider;
329-
}
330-
331323
/**
332324
* resolves all the names in the IndexCoordinates object. If a name cannot be resolved, the original name is returned.
333325
*
@@ -390,7 +382,7 @@ private EvaluationContext getIndexNameEvaluationContext() {
390382
ExpressionDependencies expressionDependencies = expression != null ? ExpressionDependencies.discover(expression)
391383
: ExpressionDependencies.none();
392384

393-
return evaluationContextProvider.getEvaluationContext(null, expressionDependencies);
385+
return getEvaluationContext(null, expressionDependencies);
394386
}
395387

396388
// endregion

0 commit comments

Comments
 (0)