mirror of https://github.com/apache/lucene.git
remove useless TS.reset() call
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1143783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5abd2b1085
commit
d85c2e13dc
|
@ -89,7 +89,6 @@ public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase {
|
||||||
TokenStream tokenStream = null;
|
TokenStream tokenStream = null;
|
||||||
try {
|
try {
|
||||||
tokenStream = analyzer.reusableTokenStream(context.getFieldName(), new StringReader(value));
|
tokenStream = analyzer.reusableTokenStream(context.getFieldName(), new StringReader(value));
|
||||||
tokenStream.reset();
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
|
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue