mirror of https://github.com/apache/lucene.git
LUCENE-1754: EMPTY_DOCIDSET subclasses DocIdSet directly
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@798104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dbff1fc9b5
commit
45cf5ebe33
|
@ -28,7 +28,7 @@ public abstract class DocIdSet {
|
|||
|
||||
/** An empty {@code DocIdSet} instance for easy use (this is currently
|
||||
* implemented using a {@link SortedVIntList}). */
|
||||
public static final DocIdSet EMPTY_DOCIDSET = new SortedVIntList(new int[0]) {
|
||||
public static final DocIdSet EMPTY_DOCIDSET = new DocIdSet() {
|
||||
|
||||
private final DocIdSetIterator iterator = new DocIdSetIterator() {
|
||||
public int advance(int target) throws IOException { return NO_MORE_DOCS; }
|
||||
|
|
Loading…
Reference in New Issue