This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 991314d461828855e4e9c8b7f19dfaddf11d56f5 Author: Alex Herbert <[email protected]> AuthorDate: Sun Aug 22 21:30:01 2021 +0100 Remove incorrect localization format for zero exception --- .../commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java index f5a127a..18bea31 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/Simplex.java @@ -170,7 +170,7 @@ public final class Simplex implements OptimizationData { final double[] vertexI = simplex[i]; for (int j = 0; j < i; j++) { if (steps[j] == 0) { - throw new ZeroException(LocalizedFormats.EQUAL_VERTICES_IN_SIMPLEX); + throw new ZeroException(); } System.arraycopy(steps, 0, vertexI, 0, j + 1); }
