mirror of https://github.com/apache/lucene.git
remove system.out and unnecessary next() in tokenstream
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@799865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
175e8b546d
commit
3e869d9336
|
@ -151,17 +151,7 @@ public class TokenSources
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue