commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1410660 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Date Sat, 17 Nov 2012 01:20:09 GMT
Author: erans
Date: Sat Nov 17 01:20:08 2012
New Revision: 1410660

URL: http://svn.apache.org/viewvc?rev=1410660&view=rev
Log:
MATH-894
Reflect type change in "hashCode".

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java?rev=1410660&r1=1410659&r2=1410660&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ResizableDoubleArray.java
Sat Nov 17 01:20:08 2012
@@ -1174,8 +1174,8 @@ public class ResizableDoubleArray implem
     @Override
     public synchronized int hashCode() {
         final int[] hashData = new int[6];
-        hashData[0] = new Float(expansionFactor).hashCode();
-        hashData[1] = new Float(contractionCriterion).hashCode();
+        hashData[0] = Double.valueOf(expansionFactor).hashCode();
+        hashData[1] = Double.valueOf(contractionCriterion).hashCode();
         hashData[2] = expansionMode.hashCode();
         hashData[3] = Arrays.hashCode(internalArray);
         hashData[4] = numElements;



Mime
View raw message