lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r806637 - /lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosReader.java
Date Fri, 21 Aug 2009 16:47:49 GMT
Author: buschmi
Date: Fri Aug 21 16:47:48 2009
New Revision: 806637

URL: http://svn.apache.org/viewvc?rev=806637&view=rev
Log:
LUCENE-1832: Remove unnecessary null check in TermInfosReader.

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosReader.java?rev=806637&r1=806636&r2=806637&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosReader.java Fri Aug 21 16:47:48
2009
@@ -246,7 +246,7 @@
     if (size == 0) return null;
 
     SegmentTermEnum enumerator = getThreadResources().termEnum;
-    if (enumerator != null && enumerator.term() != null &&
+    if (enumerator.term() != null &&
         position >= enumerator.position &&
 	position < (enumerator.position + totalIndexInterval))
       return scanEnum(enumerator, position);      // can avoid seek



Mime
View raw message