lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r169861 - /lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
Date Thu, 12 May 2005 18:09:19 GMT
Author: cutting
Date: Thu May 12 11:09:18 2005
New Revision: 169861

URL: http://svn.apache.org/viewcvs?rev=169861&view=rev
Log:
Rename 'enum' to 'termEnum' for Java 1.5 compatibility.

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java?rev=169861&r1=169860&r2=169861&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java Thu May 12 11:09:18
2005
@@ -234,35 +234,35 @@
 
   private class ParallelTermEnum extends TermEnum {
     private String field;
-    private TermEnum enum;
+    private TermEnum termEnum;
 
     public ParallelTermEnum() throws IOException {
       field = (String)fieldToReader.firstKey();
       if (field != null)
-        enum = ((IndexReader)fieldToReader.get(field)).terms();
+        termEnum = ((IndexReader)fieldToReader.get(field)).terms();
     }
     
     public ParallelTermEnum(Term term) throws IOException {
       field = term.field();
-      enum = ((IndexReader)fieldToReader.get(field)).terms(term);
+      termEnum = ((IndexReader)fieldToReader.get(field)).terms(term);
     }
     
     public boolean next() throws IOException {
       if (field == null)
         return false;
 
-      boolean next = enum.next();
+      boolean next = termEnum.next();
 
       // still within field?
-      if (next && enum.term().field() == field)
+      if (next && termEnum.term().field() == field)
         return true;                              // yes, keep going
       
-      enum.close();                               // close old enum
+      termEnum.close();                           // close old termEnum
 
       // find the next field, if any
       field = (String)fieldToReader.tailMap(field).firstKey();
       if (field != null) {
-        enum = ((IndexReader)fieldToReader.get(field)).terms();
+        termEnum = ((IndexReader)fieldToReader.get(field)).terms();
         return true;
       }
 
@@ -270,9 +270,9 @@
         
     }
 
-    public Term term() { return enum.term(); }
-    public int docFreq() { return enum.docFreq(); }
-    public void close() throws IOException { enum.close(); }
+    public Term term() { return termEnum.term(); }
+    public int docFreq() { return termEnum.docFreq(); }
+    public void close() throws IOException { termEnum.close(); }
 
   }
 



Mime
View raw message