From ac27fb02de3596174305b6dcae92e22bf55c2e26 Mon Sep 17 00:00:00 2001 From: Grant Ingersoll Date: Fri, 28 Dec 2007 14:17:48 +0000 Subject: [PATCH] Changed from overriding next(Token) to next() git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607246 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/analysis/SinkTokenizer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/lucene/analysis/SinkTokenizer.java b/src/java/org/apache/lucene/analysis/SinkTokenizer.java index 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.