mirror of https://github.com/apache/lucene.git
SOLR-858 -- BitDocSet.andNot calls instanceof on the wrong type
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@727724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1514e1fd16
commit
82279f712f
|
@ -179,7 +179,7 @@ public class BitDocSet extends DocSetBase {
|
|||
@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();
|
||||
|
|
Loading…
Reference in New Issue