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:
Michael Busch 2007-12-24 00:48:31 +00:00
parent 3084aecc85
commit c0040adc27
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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) {