Skip to content

Apache Lucene open-source search software

SOLR-2136: fix SimpleBoolFunction.equals()

Yonik Seeleyf3225e01534e
diff --git a/solr/src/java/org/apache/solr/search/function/SimpleBoolFunction.java b/solr/src/java/org/apache/solr/search/function/SimpleBoolFunction.java
index 6a4da8b229d..bb35c9dadaf 100644
--- a/solr/src/java/org/apache/solr/search/function/SimpleBoolFunction.java
+++ b/solr/src/java/org/apache/solr/search/function/SimpleBoolFunction.java
@@ -63,7 +63,7 @@ public abstract class SimpleBoolFunction extends BoolFunction {
@Override
public boolean equals(Object o) {
if (this.getClass() != o.getClass()) return false;
- SingleFunction other = (SingleFunction)o;
+ SimpleBoolFunction other = (SimpleBoolFunction)o;
return this.source.equals(other.source);
}