lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whosc...@apache.org
Subject svn commit: r478366 - /lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
Date Wed, 22 Nov 2006 23:10:13 GMT
Author: whoschek
Date: Wed Nov 22 15:10:12 2006
New Revision: 478366

URL: http://svn.apache.org/viewvc?view=rev&rev=478366
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=478366&r1=478365&r2=478366
==============================================================================
--- 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
Wed Nov 22 15:10:12 2006
@@ -229,11 +229,11 @@
       private final HashMap cache = new HashMap();
 
       public TokenStream tokenStream(String fieldName, Reader reader) {
-        Pair pair = new Pair(fieldName, reader);
-        final ArrayList tokens = (ArrayList) cache.get(pair);
+        Pair key = new Pair(fieldName, reader);
+        final ArrayList tokens = (ArrayList) cache.get(key);
         if (tokens == null) { // not yet cached
           final ArrayList tokens2 = new ArrayList();
-          cache.put(pair, tokens2);
+          cache.put(key, tokens2);
           return new TokenFilter(child.tokenStream(fieldName, reader)) {
 
             public Token next() throws IOException {



Mime
View raw message