mirror of https://github.com/apache/lucene.git
LUCENE-1098: Make inner class StandardAnalyzer.SavedStreams static and final.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606647 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3084aecc85
commit
c0040adc27
|
@ -314,6 +314,8 @@ Optimizations
|
|||
documents, and a slight performance increase for top level
|
||||
conjunctions. (yonik)
|
||||
|
||||
14. LUCENE-1098: Make inner class StandardAnalyzer.SavedStreams static
|
||||
and final. (Nathan Beyer via Michael Busch)
|
||||
|
||||
Documentation
|
||||
|
||||
|
|
|
@ -76,10 +76,11 @@ public class StandardAnalyzer extends Analyzer {
|
|||
return result;
|
||||
}
|
||||
|
||||
private class SavedStreams {
|
||||
private static final class SavedStreams {
|
||||
StandardTokenizer tokenStream;
|
||||
TokenStream filteredTokenStream;
|
||||
};
|
||||
}
|
||||
|
||||
public TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException {
|
||||
SavedStreams streams = (SavedStreams) getPreviousTokenStream();
|
||||
if (streams == null) {
|
||||
|
|
Loading…
Reference in New Issue