commit | 991314d461828855e4e9c8b7f19dfaddf11d56f5 | [log] [tgz] |
---|---|---|
author | Alex Herbert <aherbert@apache.org> | Sun Aug 22 21:30:01 2021 +0100 |
committer | Alex Herbert <aherbert@apache.org> | Sun Aug 22 21:43:52 2021 +0100 |
tree | e4ddc159b4329dc761b8ff0585e7d0a2e9e88f6c | |
parent | dc639967c22d99ff4873e4065352fdc0f11cd591 [diff] |
Remove incorrect localization format for zero exception
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 @@ 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); }