From fb314ef3dfd641eb47431ec3bb5eead4bd354ae7 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Sun, 22 Aug 2021 03:46:25 +0200 Subject: [PATCH] Spurious "throws" clauses. --- .../optim/nonlinear/scalar/noderiv/CMAESOptimizer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java index 45190e84e..83b036e5d 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java @@ -298,8 +298,7 @@ public class CMAESOptimizer * @throws NotPositiveException if any of the array entries is smaller * than zero. */ - public Sigma(double[] s) - throws NotPositiveException { + public Sigma(double[] s) { for (int i = 0; i < s.length; i++) { if (s[i] < 0) { throw new NotPositiveException(s[i]); @@ -334,9 +333,7 @@ public class CMAESOptimizer * arguments have inconsistent dimensions. */ @Override - public PointValuePair optimize(OptimizationData... optData) - throws TooManyEvaluationsException, - DimensionMismatchException { + public PointValuePair optimize(OptimizationData... optData) { // Set up base class and perform computation. return super.optimize(optData); }