lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r799865 - /lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
Date Sat, 01 Aug 2009 14:18:19 GMT
Author: markrmiller
Date: Sat Aug  1 14:18:19 2009
New Revision: 799865

URL: http://svn.apache.org/viewvc?rev=799865&view=rev
Log:
remove system.out and unnecessary next() in tokenstream 

Modified:
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java?rev=799865&r1=799864&r2=799865&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
Sat Aug  1 14:18:19 2009
@@ -151,17 +151,7 @@
             offsetAtt = (OffsetAttribute) addAttribute(OffsetAttribute.class);
           }
     
-          public Token next(final Token reusableToken) {
-            System.out.println("next token");
-            assert reusableToken != null;
-            if (currentToken >= tokens.length) {
-              return null;
-            }
-            return tokens[currentToken++];
-          }
-    
           public boolean incrementToken() throws IOException {
-            System.out.println("inc token");
             if (currentToken >= tokens.length) {
               return false;
             }



Mime
View raw message