mirror of https://github.com/apache/lucene.git
LUCENE-1058: override the close method so it doesn't try to close the null Reader input
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e678a307d
commit
11895271a3
|
@ -64,6 +64,12 @@ public class SinkTokenizer extends Tokenizer {
|
|||
lst.add((Token) t.clone());
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
//nothing to close
|
||||
input = null;
|
||||
lst = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the internal data structures to the start at the front of the list of tokens. Should be called
|
||||
* if tokens were added to the list after an invocation of {@link #next(Token)}
|
||||
|
|
Loading…
Reference in New Issue