lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1066515 - in /lucene/dev/trunk/solr/src/java/org/apache/solr/search: DocSet.java SortedIntDocSet.java
Date Wed, 02 Feb 2011 16:22:51 GMT
Author: yonik
Date: Wed Feb  2 16:22:51 2011
New Revision: 1066515

URL: http://svn.apache.org/viewvc?rev=1066515&view=rev
Log:
LUCENE-2831: remove unnecessary casts

Modified:
    lucene/dev/trunk/solr/src/java/org/apache/solr/search/DocSet.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/search/SortedIntDocSet.java

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/search/DocSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/search/DocSet.java?rev=1066515&r1=1066514&r2=1066515&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/search/DocSet.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/search/DocSet.java Wed Feb  2 16:22:51
2011
@@ -248,9 +248,8 @@ abstract class DocSetBase implements Doc
 
     return new Filter() {
       @Override
-      public DocIdSet getDocIdSet(AtomicReaderContext ctx) throws IOException {
-        IndexReader.AtomicReaderContext context = (IndexReader.AtomicReaderContext)ctx; 
// TODO: remove after lucene migration
-        IndexReader reader = ctx.reader;
+      public DocIdSet getDocIdSet(AtomicReaderContext context) throws IOException {
+        IndexReader reader = context.reader;
 
         if (context.isTopLevel) {
           return bs;

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/search/SortedIntDocSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/search/SortedIntDocSet.java?rev=1066515&r1=1066514&r2=1066515&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/search/SortedIntDocSet.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/search/SortedIntDocSet.java Wed Feb  2
16:22:51 2011
@@ -552,8 +552,7 @@ public class SortedIntDocSet extends Doc
       int lastEndIdx = 0;
 
       @Override
-      public DocIdSet getDocIdSet(AtomicReaderContext contextX) throws IOException {
-        AtomicReaderContext context = (AtomicReaderContext)contextX;  // TODO: remove after
lucene migration
+      public DocIdSet getDocIdSet(AtomicReaderContext context) throws IOException {
         IndexReader reader = context.reader;
 
         final int base = context.docBase;



Mime
View raw message