Author: sebb
Date: Sun Apr 5 17:10:23 2009
New Revision: 762121
URL: http://svn.apache.org/viewvc?rev=762121&view=rev
Log:
Make private static fields final.
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java?rev=762121&r1=762120&r2=762121&view=diff
==============================================================================
---
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
(original)
+++
commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
Sun Apr 5 17:10:23 2009
@@ -37,7 +37,7 @@
private static final double DEFAULT_EPSILON = 10e-15;
/** Lanczos coefficients */
- private static double[] lanczos =
+ private static final double[] lanczos =
{
0.99999999999999709182,
57.156235665862923517,
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java?rev=762121&r1=762120&r2=762121&view=diff
==============================================================================
---
commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
(original)
+++
commons/proper/math/trunk/src/test/org/apache/commons/math/util/MathUtilsTest.java
Sun Apr 5 17:10:23 2009
@@ -45,7 +45,7 @@
}
/** cached binomial coefficients */
- private static List<Map<Integer, Long>> binomialCache = new
ArrayList<Map<Integer, Long>>();
+ private static final List<Map<Integer, Long>> binomialCache = new
ArrayList<Map<Integer, Long>>();
/**
* Exact (caching) recursive implementation to test against