lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r606647 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
Date Mon, 24 Dec 2007 00:48:32 GMT
Author: buschmi
Date: Sun Dec 23 16:48:31 2007
New Revision: 606647

URL: http://svn.apache.org/viewvc?rev=606647&view=rev
Log:
LUCENE-1098: Make inner class StandardAnalyzer.SavedStreams static and final. 

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=606647&r1=606646&r2=606647&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Sun Dec 23 16:48:31 2007
@@ -314,6 +314,8 @@
     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
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java?rev=606647&r1=606646&r2=606647&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java Sun
Dec 23 16:48:31 2007
@@ -76,10 +76,11 @@
     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) {



Mime
View raw message