diff --git a/lucene/core/src/java/org/apache/lucene/index/LeafReader.java b/lucene/core/src/java/org/apache/lucene/index/LeafReader.java index 424e1713270..1b677673f68 100644 --- a/lucene/core/src/java/org/apache/lucene/index/LeafReader.java +++ b/lucene/core/src/java/org/apache/lucene/index/LeafReader.java @@ -18,6 +18,7 @@ package org.apache.lucene.index; import java.io.IOException; +import org.apache.lucene.index.IndexReader.ReaderClosedListener; import org.apache.lucene.search.Sort; import org.apache.lucene.util.Bits; @@ -76,7 +77,7 @@ public abstract class LeafReader extends IndexReader { * * @lucene.experimental */ - public interface CoreClosedListener { + public static interface CoreClosedListener { /** Invoked when the shared core of the original {@code * SegmentReader} has closed. The provided {@code * ownerCoreCacheKey} will be the same key as the one