commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1504722 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java
Date Thu, 18 Jul 2013 23:39:36 GMT
Author: sebb
Date: Thu Jul 18 23:39:36 2013
New Revision: 1504722

URL: http://svn.apache.org/r1504722
Log:
Unnecessary casts

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java?rev=1504722&r1=1504721&r2=1504722&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/RandomGeneratorAbstractTest.java
Thu Jul 18 23:39:36 2013
@@ -136,7 +136,7 @@ public abstract class RandomGeneratorAbs
                 (double) ((binUpperBounds[0] + 1) * smallSampleSize) / (double) n;
             for (int k = 1; k < binCount; k++) {
                 expected[k] = (double) smallSampleSize *
-                (double) (binUpperBounds[k] - binUpperBounds[k - 1]) / (double) n;
+                (double) (binUpperBounds[k] - binUpperBounds[k - 1]) / n;
             }
             for (int j = 0; j < numTests; j++) {
                 Arrays.fill(observed, 0);



Mime
View raw message