lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r830453 - /lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
Date Wed, 28 Oct 2009 07:27:33 GMT
Author: uschindler
Date: Wed Oct 28 07:27:32 2009
New Revision: 830453

URL: http://svn.apache.org/viewvc?rev=830453&view=rev
Log:
No need to use Arrays.deep* methods (there are no nested arrays, the array itsself is strongly
typed to a non-array).

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java?rev=830453&r1=830452&r2=830453&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java Wed
Oct 28 07:27:32 2009
@@ -146,13 +146,13 @@
         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());
   }  
   



Mime
View raw message