diff --git a/solr/core/src/java/org/apache/solr/uninverting/FieldCacheImpl.java b/solr/core/src/java/org/apache/solr/uninverting/FieldCacheImpl.java index f8bf77485af..f06f7e3fb03 100644 --- a/solr/core/src/java/org/apache/solr/uninverting/FieldCacheImpl.java +++ b/solr/core/src/java/org/apache/solr/uninverting/FieldCacheImpl.java @@ -112,7 +112,7 @@ class FieldCacheImpl implements FieldCache { } // per-segment fieldcaches don't purge until the shared core closes. - final SegmentReader.CoreClosedListener purgeCore = ownerCoreCacheKey -> FieldCacheImpl.this.purgeByCacheKey(ownerCoreCacheKey); + final SegmentReader.CoreClosedListener purgeCore = FieldCacheImpl.this::purgeByCacheKey; private void initReader(LeafReader reader) { reader.addCoreClosedListener(purgeCore);