lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject svn commit: r1057612 - /lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java
Date Tue, 11 Jan 2011 13:16:20 GMT
Author: simonw
Date: Tue Jan 11 13:16:19 2011
New Revision: 1057612

URL: http://svn.apache.org/viewvc?rev=1057612&view=rev
Log:
removed redundant cast

Modified:
    lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java

Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java?rev=1057612&r1=1057611&r2=1057612&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestFilteredSearch.java Tue
Jan 11 13:16:19 2011
@@ -99,7 +99,7 @@ public class TestFilteredSearch extends 
     public DocIdSet getDocIdSet(AtomicReaderContext context) {
       assert context.isAtomic;
       final OpenBitSet set = new OpenBitSet();
-      int docBase = ((AtomicReaderContext)context).docBase;
+      int docBase = context.docBase;
       final int limit = docBase+context.reader.maxDoc();
       for (;index < docs.length; index++) {
         final int docId = docs[index];



Mime
View raw message