commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1197466 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java
Date Fri, 04 Nov 2011 09:51:12 GMT
Author: sebb
Date: Fri Nov  4 09:51:11 2011
New Revision: 1197466

URL: http://svn.apache.org/viewvc?rev=1197466&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java?rev=1197466&r1=1197465&r2=1197466&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/transform/FastHadamardTransformerTest.java
Fri Nov  4 09:51:11 2011
@@ -89,7 +89,7 @@ public final class FastHadamardTransform
         double dResult[] = transformer.transform(dX);
         for (int i = 0; i < dResult.length; i++) {
             // compare computed results to precomputed results
-            Assert.assertTrue(Precision.equals((double) y[i], dResult[i], 1));
+            Assert.assertTrue(Precision.equals(y[i], dResult[i], 1));
         }
     }
 
@@ -118,7 +118,7 @@ public final class FastHadamardTransform
         double dResult[] = transformer.inversetransform(dY);
         for (int i = 0; i < dResult.length; i++) {
             // compare computed results to precomputed results
-            Assert.assertTrue(Precision.equals((double) x[i], dResult[i], 1));
+            Assert.assertTrue(Precision.equals(x[i], dResult[i], 1));
         }
 
     }



Mime
View raw message