From c0040adc270655b3667d5dd606fd391e2667c95e Mon Sep 17 00:00:00 2001 From: Michael Busch Date: Mon, 24 Dec 2007 00:48:31 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 2 ++ .../apache/lucene/analysis/standard/StandardAnalyzer.java | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ace84d9ef73..21bd668f807 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java b/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java index 964e15b54a1..26821d33644 100644 --- a/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java +++ b/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java @@ -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) {