Make private static fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d6fc4d3fba
commit
52ec13ba7d
|
@ -41,7 +41,7 @@ public class GeneticAlgorithmTestPermutations {
|
|||
private static final int TOURNAMENT_ARITY = 2;
|
||||
|
||||
// numbers from 0 to N-1
|
||||
private static List<Integer> sequence = new ArrayList<Integer>();
|
||||
private static final List<Integer> sequence = new ArrayList<Integer>();
|
||||
static {
|
||||
for (int i=0; i<DIMENSION; i++) {
|
||||
sequence.add(i);
|
||||
|
|
|
@ -23,7 +23,7 @@ package org.apache.commons.math.ode;
|
|||
public class TestProblemFactory {
|
||||
|
||||
/** Problems pool. */
|
||||
private static TestProblemAbstract[] pool = {
|
||||
private static final TestProblemAbstract[] pool = {
|
||||
new TestProblem1(),
|
||||
new TestProblem2(),
|
||||
new TestProblem3(),
|
||||
|
|
Loading…
Reference in New Issue