lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r885769 - /lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java
Date Tue, 01 Dec 2009 14:32:59 GMT
Author: uschindler
Date: Tue Dec  1 14:32:58 2009
New Revision: 885769

URL: http://svn.apache.org/viewvc?rev=885769&view=rev
Log:
LUCENE-2094: Fix hudson build failure.

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java?rev=885769&r1=885768&r2=885769&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestPositionIncrement.java Tue Dec
 1 14:32:58 2009
@@ -277,11 +277,7 @@
       //System.out.println(pspans.doc() + " - " + pspans.start() + " - "+ pspans.end());
       Collection<byte[]> payloads = pspans.getPayload();
       sawZero |= pspans.start() == 0;
-      for (@SuppressWarnings("unused") byte[] bytes : payloads) {
-        count++;
-        //System.out.println(new String(bytes));
-
-      }
+      count += payloads.size();
     }
     assertEquals(5, count);
     assertTrue(sawZero);



Mime
View raw message