You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/03/14 14:41:30 UTC

svn commit: r753656 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java

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;
     }