Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 32689 invoked from network); 1 Feb 2011 00:12:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 00:12:33 -0000 Received: (qmail 78254 invoked by uid 500); 1 Feb 2011 00:12:33 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 78203 invoked by uid 500); 1 Feb 2011 00:12:32 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 78196 invoked by uid 99); 1 Feb 2011 00:12:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 00:12:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 00:12:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 332E823889DA; Tue, 1 Feb 2011 00:12:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1065872 - /commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java Date: Tue, 01 Feb 2011 00:12:10 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110201001210.332E823889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Tue Feb 1 00:12:09 2011 New Revision: 1065872 URL: http://svn.apache.org/viewvc?rev=1065872&view=rev Log: Arrays might as well be final Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java?rev=1065872&r1=1065871&r2=1065872&view=diff ============================================================================== --- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java (original) +++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java Tue Feb 1 00:12:09 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 };