SOLR-10083: Fix instanceof check in ConstDoubleSource.equals (Pushkar Raste via Christine Poerschke)

This commit is contained in:
Christine Poerschke 2017-02-08 17:18:02 +00:00
parent 0e0821fdc1
commit c20853bf09
2 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,8 @@ Bug Fixes
* SOLR-10049: Collection deletion leaves behind the snapshot metadata (Hrishikesh Gadre via yonik)
* SOLR-10083: Fix instanceof check in ConstDoubleSource.equals (Pushkar Raste via Christine Poerschke)
Optimizations
----------------------

View File

@ -23,7 +23,6 @@ import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.queries.function.FunctionValues;
import org.apache.lucene.queries.function.docvalues.DoubleDocValues;
import org.apache.lucene.queries.function.valuesource.ConstNumberSource;
import org.apache.lucene.queries.function.valuesource.ConstValueSource;
import org.apache.solr.analytics.util.AnalyticsParams;
/**
@ -67,7 +66,7 @@ public class ConstDoubleSource extends ConstNumberSource {
@Override
public boolean equals(Object o) {
if (!(o instanceof ConstValueSource)) return false;
if (!(o instanceof ConstDoubleSource)) return false;
ConstDoubleSource other = (ConstDoubleSource)o;
return this.constant == other.constant;
}