You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by bu...@apache.org on 2009/07/22 08:24:54 UTC

svn commit: r796617 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java

Author: buschmi
Date: Wed Jul 22 06:24:54 2009
New Revision: 796617

URL: http://svn.apache.org/viewvc?rev=796617&view=rev
Log:
Small fix for TestPayloads testcase.

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java?rev=796617&r1=796616&r2=796617&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestPayloads.java Wed Jul 22 06:24:54 2009
@@ -532,6 +532,7 @@
         
         public boolean incrementToken() throws IOException {
             if (!first) return false;
+            first = false;
             termAtt.setTermBuffer(term);
             payloadAtt.setPayload(new Payload(payload));
             return true;