You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/08/22 01:46:57 UTC
[commons-math] branch master updated: Spurious "throws" clauses.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push:
new fb314ef Spurious "throws" clauses.
fb314ef is described below
commit fb314ef3dfd641eb47431ec3bb5eead4bd354ae7
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sun Aug 22 03:46:25 2021 +0200
Spurious "throws" clauses.
---
.../legacy/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 45190e8..83b036e 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);
}