mirror of https://github.com/apache/lucene.git
SOLR-10083: Fix instanceof check in ConstDoubleSource.equals (Pushkar Raste via Christine Poerschke)
This commit is contained in:
parent
0e0821fdc1
commit
c20853bf09
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue