lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r798104 - /lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java
Date Mon, 27 Jul 2009 11:23:11 GMT
Author: mikemccand
Date: Mon Jul 27 11:23:11 2009
New Revision: 798104

URL: http://svn.apache.org/viewvc?rev=798104&view=rev
Log:
LUCENE-1754: EMPTY_DOCIDSET subclasses DocIdSet directly

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java?rev=798104&r1=798103&r2=798104&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSet.java Mon Jul 27 11:23:11
2009
@@ -28,7 +28,7 @@
 
   /** 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; }



Mime
View raw message