Author: shalin
Date: Thu Dec 18 05:40:08 2008
New Revision: 727724
URL: http://svn.apache.org/viewvc?rev=727724&view=rev
Log:
SOLR-858 -- BitDocSet.andNot calls instanceof on the wrong type
Modified:
lucene/solr/trunk/src/java/org/apache/solr/search/BitDocSet.java
Modified: lucene/solr/trunk/src/java/org/apache/solr/search/BitDocSet.java
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/BitDocSet.java?rev=727724&r1=727723&r2=727724&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/BitDocSet.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/BitDocSet.java Thu Dec 18
05:40:08 2008
@@ -179,7 +179,7 @@
@Override
public DocSet andNot(DocSet other) {
OpenBitSet newbits = (OpenBitSet)(bits.clone());
- if (other instanceof OpenBitSet) {
+ if (other instanceof BitDocSet) {
newbits.andNot(((BitDocSet)other).bits);
} else {
DocIterator iter = other.iterator();