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:
Michael McCandless 2009-07-27 11:23:11 +00:00
parent dbff1fc9b5
commit 45cf5ebe33
1 changed files with 1 additions and 1 deletions

View File

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