lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r607246 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/SinkTokenizer.java
Date Fri, 28 Dec 2007 14:17:48 GMT
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



Mime
View raw message