diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizer.java index 60a2a388c..a3a20367c 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizer.java @@ -123,7 +123,7 @@ public class SimplexOptimizer extends MultivariateOptimizer { // Indirect call to "computeObjectiveValue" in order to update the // evaluations counter. - final MultivariateFunction evalFunc = (p) -> computeObjectiveValue(p); + final MultivariateFunction evalFunc = p -> computeObjectiveValue(p); final boolean isMinim = getGoalType() == GoalType.MINIMIZE; final Comparator comparator = (o1, o2) -> {