From 991314d461828855e4e9c8b7f19dfaddf11d56f5 Mon Sep 17 00:00:00 2001 From: Alex Herbert Date: Sun, 22 Aug 2021 21:30:01 +0100 Subject: [PATCH] Remove incorrect localization format for zero exception --- .../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 f5a127a66..18bea3192 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); }