Apache Solr open-source search software
Changed from overriding next(Token) to next()
Grant Ingersollac27fb02de35
diff --git a/src/java/org/apache/lucene/analysis/SinkTokenizer.java b/src/java/org/apache/lucene/analysis/SinkTokenizer.javaindex 86c96fca3d3..4bd5ea99148 100644--- a/src/java/org/apache/lucene/analysis/SinkTokenizer.java+++ b/src/java/org/apache/lucene/analysis/SinkTokenizer.java@@ -43,16 +43,17 @@ public class SinkTokenizer extends Tokenizer {}/**- * 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* on the old tokens.