commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r762011 - /commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java
Date Sat, 04 Apr 2009 21:08:13 GMT
Author: sebb
Date: Sat Apr  4 21:08:13 2009
New Revision: 762011

URL: http://svn.apache.org/viewvc?rev=762011&view=rev
Log:
Make private static fields final, as they are not changed currently.
[If they were mutable, this would make the class thread-hostile.]

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java?rev=762011&r1=762010&r2=762011&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/StatUtils.java Sat Apr
 4 21:08:13 2009
@@ -37,34 +37,34 @@
 public final class StatUtils {
 
     /** sum */
-    private static UnivariateStatistic sum = new Sum();
+    private static final UnivariateStatistic sum = new Sum();
 
     /** sumSq */
-    private static UnivariateStatistic sumSq = new SumOfSquares();
+    private static final UnivariateStatistic sumSq = new SumOfSquares();
 
     /** prod */
-    private static UnivariateStatistic prod = new Product();
+    private static final UnivariateStatistic prod = new Product();
 
     /** sumLog */
-    private static UnivariateStatistic sumLog = new SumOfLogs();
+    private static final UnivariateStatistic sumLog = new SumOfLogs();
 
     /** min */
-    private static UnivariateStatistic min = new Min();
+    private static final UnivariateStatistic min = new Min();
 
     /** max */
-    private static UnivariateStatistic max = new Max();
+    private static final UnivariateStatistic max = new Max();
 
     /** mean */
-    private static UnivariateStatistic mean = new Mean();
+    private static final UnivariateStatistic mean = new Mean();
 
     /** variance */
-    private static Variance variance = new Variance();
+    private static final Variance variance = new Variance();
 
     /** percentile */
-    private static Percentile percentile = new Percentile();
+    private static final Percentile percentile = new Percentile();
     
     /** geometric mean */
-    private static GeometricMean geometricMean = new GeometricMean();
+    private static final GeometricMean geometricMean = new GeometricMean();
 
     /**
      * Private Constructor



Mime
View raw message