SOLR-8995: use lambdas for CoreCloseListener

This commit is contained in:
Noble Paul 2016-09-29 11:38:00 +05:30
parent e8767daa7b
commit 8ce52cf2b1
1 changed files with 1 additions and 1 deletions

View File

@ -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);