Apache Solr open-source search software
SOLR-858 -- BitDocSet.andNot calls instanceof on the wrong type
Shalin Shekhar Mangar82279f712f9c
diff --git a/src/java/org/apache/solr/search/BitDocSet.java b/src/java/org/apache/solr/search/BitDocSet.javaindex 46ba8ae5936..6caa6e7d9e8 100644--- a/src/java/org/apache/solr/search/BitDocSet.java+++ b/src/java/org/apache/solr/search/BitDocSet.java@@ -179,7 +179,7 @@ public class BitDocSet extends DocSetBase {@Overridepublic 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();