You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2010/10/03 00:25:57 UTC

svn commit: r1003910 - in /commons/proper/math/branches/MATH_2_X: ./ src/test/java/org/apache/commons/math/util/FastMathTest.java

Author: luc
Date: Sat Oct  2 22:25:56 2010
New Revision: 1003910

URL: http://svn.apache.org/viewvc?rev=1003910&view=rev
Log:
backported r1003576 from trunk to branch 2.X
Constants might as well be static

Modified:
    commons/proper/math/branches/MATH_2_X/   (props changed)
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java

Propchange: commons/proper/math/branches/MATH_2_X/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sat Oct  2 22:25:56 2010
@@ -1 +1 @@
-/commons/proper/math/trunk:1003346,1003348-1003351,1003526,1003533,1003543,1003545,1003547,1003549,1003566-1003567,1003569,1003584
+/commons/proper/math/trunk:1003346,1003348-1003351,1003526,1003533,1003543,1003545,1003547,1003549,1003566-1003567,1003569,1003576,1003584

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java?rev=1003910&r1=1003909&r2=1003910&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java (original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/util/FastMathTest.java Sat Oct  2 22:25:56 2010
@@ -28,8 +28,9 @@ import org.junit.Test;
 
 public class FastMathTest {
 
-    private final double MAX_ERROR_ULP = 0.51;
-    private final int NUMBER_OF_TRIALS = 1000;
+    private static final double MAX_ERROR_ULP = 0.51;
+    private static final int NUMBER_OF_TRIALS = 1000;
+
     private DfpField field;
     private RandomGenerator generator;