commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1581381 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMath.java
Date Tue, 25 Mar 2014 15:48:29 GMT
Author: erans
Date: Tue Mar 25 15:48:28 2014
New Revision: 1581381

URL: http://svn.apache.org/r1581381
Log:
"final" keyword.

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

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMath.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMath.java?rev=1581381&r1=1581380&r2=1581381&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMath.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/FastMath.java Tue
Mar 25 15:48:28 2014
@@ -2433,7 +2433,6 @@ public class FastMath {
      */
     private static double atan(double xa, double xb, boolean leftPlane) {
         boolean negate = false;
-        int idx;
 
         if (xa == 0.0) { // Matches +/- 0.0; return correct sign
             return leftPlane ? copySign(Math.PI, xa) : xa;
@@ -2451,6 +2450,7 @@ public class FastMath {
         }
 
         /* Estimate the closest tabulated arctan value, compute eps = xa-tangentTable */
+        final int idx;
         if (xa < 1) {
             idx = (int) (((-1.7168146928204136 * xa * xa + 8.0) * xa) + 0.5);
         } else {



Mime
View raw message