mirror of https://github.com/apache/lucene.git
SOLR-8995: use lambdas for CoreCloseListener
This commit is contained in:
parent
e8767daa7b
commit
8ce52cf2b1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue