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:
Uwe Schindler 2009-10-28 07:27:32 +00:00
parent 1be4db5d9e
commit c0f3e62ed4
1 changed files with 2 additions and 2 deletions

View File

@ -146,13 +146,13 @@ public class CustomScoreQuery extends Query {
this.valSrcQueries.length != other.valSrcQueries.length) { this.valSrcQueries.length != other.valSrcQueries.length) {
return false; return false;
} }
return Arrays.deepEquals(valSrcQueries, other.valSrcQueries); return Arrays.equals(valSrcQueries, other.valSrcQueries);
} }
/** Returns a hash code value for this object. */ /** Returns a hash code value for this object. */
@Override @Override
public int hashCode() { public int hashCode() {
return (getClass().hashCode() + subQuery.hashCode() + Arrays.deepHashCode(valSrcQueries)) return (getClass().hashCode() + subQuery.hashCode() + Arrays.hashCode(valSrcQueries))
^ Float.floatToIntBits(getBoost()); ^ Float.floatToIntBits(getBoost());
} }