Make write-once private fields final

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-03-06 10:57:11 +00:00
parent 3782364dc7
commit b20cc34b67
1 changed files with 2 additions and 2 deletions

View File

@ -827,7 +827,7 @@ public class CMAESOptimizer extends
private class FitnessFunction {
/** Optional bounds for the objective variables */
private double[][] boundaries;
private final double[][] boundaries;
/** Determines the penalty for boundary violations */
private double valueRange = 1.0;
/**
@ -836,7 +836,7 @@ public class CMAESOptimizer extends
*/
private boolean isRepairMode = true;
/** Flag indicating the optimization goal. */
private boolean isMinimize = true;
private final boolean isMinimize;
/**
* @param boundaries