commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r753656 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java
Date Sat, 14 Mar 2009 13:41:30 GMT
Author: sebb
Date: Sat Mar 14 13:41:29 2009
New Revision: 753656

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

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java?rev=753656&r1=753655&r2=753656&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java Sat
Mar 14 13:41:29 2009
@@ -331,8 +331,8 @@
         double sumSq = 0.0d;
         double dev = 0.0d;
         for (int i = 0; i< observed.length; i++) {
-            dev = (double)(observed[i] - expected[i]);
-            sumSq += dev*dev/(double)expected[i];
+            dev = (observed[i] - expected[i]);
+            sumSq += dev*dev/expected[i];
         }
         return sumSq;
     }           



Mime
View raw message