Make private static fields final, as they are not changed currently.
[If they were mutable, this would make the class thread-hostile.] git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@762011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
907b316799
commit
37ea6e2ad7
|
@ -37,34 +37,34 @@ import org.apache.commons.math.stat.descriptive.summary.SumOfSquares;
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue