lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r824088 - /lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java
Date Sun, 11 Oct 2009 15:28:04 GMT
Author: uschindler
Date: Sun Oct 11 15:28:03 2009
New Revision: 824088

URL: http://svn.apache.org/viewvc?rev=824088&view=rev
Log:
fix usage of deprecated method in BooleanFilterTest, as OpenBitSet's next() was already removed.

Modified:
    lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java

Modified: lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java?rev=824088&r1=824087&r2=824088&view=diff
==============================================================================
--- lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java
(original)
+++ lucene/java/trunk/contrib/queries/src/test/org/apache/lucene/search/BooleanFilterTest.java
Sun Oct 11 15:28:03 2009
@@ -78,7 +78,7 @@
         {
           DocIdSetIterator disi = filt.getDocIdSet(reader).iterator();
           int actual = 0;
-          while (disi.next()) {
+          while (disi.nextDoc() != DocIdSetIterator.NO_MORE_DOCS) {
             actual++;
           }
           assertEquals(mes, expected, actual);



Mime
View raw message