Apache Lucene open-source search software
No need to use Arrays.deep* methods (there are no nested arrays, the array itsself is strongly typed to a non-array).
Uwe Schindlerc0f3e62ed4c3
diff --git a/src/java/org/apache/lucene/search/function/CustomScoreQuery.java b/src/java/org/apache/lucene/search/function/CustomScoreQuery.javaindex 5bfdb048c23..87e230458c4 100755--- a/src/java/org/apache/lucene/search/function/CustomScoreQuery.java+++ b/src/java/org/apache/lucene/search/function/CustomScoreQuery.java@@ -146,13 +146,13 @@ public class CustomScoreQuery extends Query {this.valSrcQueries.length != other.valSrcQueries.length) {return false;}- return Arrays.deepEquals(valSrcQueries, other.valSrcQueries);+ return Arrays.equals(valSrcQueries, other.valSrcQueries);}/** Returns a hash code value for this object. */@Overridepublic int hashCode() {- return (getClass().hashCode() + subQuery.hashCode() + Arrays.deepHashCode(valSrcQueries))+ return (getClass().hashCode() + subQuery.hashCode() + Arrays.hashCode(valSrcQueries))^ Float.floatToIntBits(getBoost());}