lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whosc...@apache.org
Subject svn commit: r479755 - /lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
Date Mon, 27 Nov 2006 20:36:31 GMT
Author: whoschek
Date: Mon Nov 27 12:36:29 2006
New Revision: 479755

URL: http://svn.apache.org/viewvc?view=rev&rev=479755
Log:
cosmetics

Modified:
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java?view=diff&rev=479755&r1=479754&r2=479755
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
Mon Nov 27 12:36:29 2006
@@ -237,7 +237,7 @@
         final ArrayList tokens = (ArrayList) cache.get(fieldName);
         if (tokens == null) { // not yet cached
           final ArrayList tokens2 = new ArrayList();
-          TokenStream stream = new TokenFilter(child.tokenStream(fieldName, reader)) {
+          TokenStream tokenStream = new TokenFilter(child.tokenStream(fieldName, reader))
{
 
             public Token next() throws IOException {
               Token token = input.next(); // from filter super class
@@ -245,8 +245,9 @@
               return token;
             }
           };
+          
           cache.put(fieldName, tokens2);
-          return stream;
+          return tokenStream;
         } else { // already cached
           return new TokenStream() {
 



Mime
View raw message