diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java index b8ecfa424f6..a17500d8333 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java @@ -108,7 +108,8 @@ public class ModelLoadingService implements ClusterStateListener { this.localModelCache = CacheBuilder.>builder() .setMaximumWeight(this.maxCacheSize.getBytes()) .weigher((id, localModel) -> localModel.ramBytesUsed()) - .removalListener(this::cacheEvictionListener) + // explicit declaration of the listener lambda necessary for Eclipse IDE 4.14 + .removalListener(notification -> cacheEvictionListener(notification)) .setExpireAfterAccess(INFERENCE_MODEL_CACHE_TTL.get(settings)) .build(); clusterService.addListener(this);