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 gs...@apache.org on 2007/12/28 15:17:48 UTC

svn commit: r607246 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java

Author: gsingers
Date: Fri Dec 28 06:17:48 2007
New Revision: 607246

URL: http://svn.apache.org/viewvc?rev=607246&view=rev
Log:
Changed from overriding next(Token) to next()

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java?rev=607246&r1=607245&r2=607246&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java Fri Dec 28 06:17:48 2007
@@ -43,15 +43,16 @@
   }
 
   /**
-   * Ignores the input result Token and returns the next token out of the list of cached tokens
-   * @param result The input token
+   * Returns the next token out of the list of cached tokens
    * @return The next {@link org.apache.lucene.analysis.Token} in the Sink.
    * @throws IOException
    */
-  public Token next(Token result) throws IOException {
+  public Token next() throws IOException {
     if (iter == null) iter = lst.iterator();
     return iter.hasNext() ? (Token) iter.next() : null;
   }
+
+
 
   /**
    * Override this method to cache only certain tokens, or new tokens based