diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/cache/field/data/support/AbstractConcurrentMapFieldDataCache.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/cache/field/data/support/AbstractConcurrentMapFieldDataCache.java index c82ffc49609..f6c1262f05c 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/cache/field/data/support/AbstractConcurrentMapFieldDataCache.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/cache/field/data/support/AbstractConcurrentMapFieldDataCache.java @@ -81,7 +81,7 @@ public abstract class AbstractConcurrentMapFieldDataCache extends AbstractIndexC } } } - FieldData fieldData = (FieldData) fieldDataCache.get(fieldName); + FieldData fieldData = fieldDataCache.get(fieldName); if (fieldData == null) { synchronized (fieldDataCache) { fieldData = fieldDataCache.get(fieldName);