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:
Shalin Shekhar Mangar 2008-12-18 13:40:08 +00:00
parent 1514e1fd16
commit 82279f712f
1 changed files with 1 additions and 1 deletions

View File

@ -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();