mirror of https://github.com/apache/lucene.git
No need to use Arrays.deep* methods (there are no nested arrays, the array itsself is strongly typed to a non-array).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1be4db5d9e
commit
c0f3e62ed4
|
@ -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. */
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return (getClass().hashCode() + subQuery.hashCode() + Arrays.deepHashCode(valSrcQueries))
|
||||
return (getClass().hashCode() + subQuery.hashCode() + Arrays.hashCode(valSrcQueries))
|
||||
^ Float.floatToIntBits(getBoost());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue