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 2011/02/01 01:12:59 UTC

svn commit: r1065873 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java

Author: sebb
Date: Tue Feb  1 00:12:58 2011
New Revision: 1065873

URL: http://svn.apache.org/viewvc?rev=1065873&view=rev
Log:
Arrays might as well be final

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java?rev=1065873&r1=1065872&r2=1065873&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java Tue Feb  1 00:12:58 2011
@@ -143,7 +143,7 @@ public class FastMath {
     private static final double TANGENT_TABLE_B[] = new double[14];
 
     /** Bits of 1/(2*pi), need for reducePayneHanek(). */
-    private static long RECIP_2PI[] = new long[] {
+    private static final long RECIP_2PI[] = new long[] {
         (0x28be60dbL << 32) | 0x9391054aL,
         (0x7f09d5f4L << 32) | 0x7d4d3770L,
         (0x36d8a566L << 32) | 0x4f10e410L,
@@ -164,7 +164,7 @@ public class FastMath {
          0x9afed7ecL << 32  };
 
     /** Bits of pi/4, need for reducePayneHanek(). */
-    private static long PI_O_4_BITS[] = new long[] {
+    private static final long PI_O_4_BITS[] = new long[] {
         (0xc90fdaa2L << 32) | 0x2168c234L,
         (0xc4c6628bL << 32) | 0x80dc1cd1L };