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 2019/09/17 13:05:40 UTC
[commons-math] branch master updated: Unnecessary "throws" clauses
and unused "import" statements.
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 f72172b Unnecessary "throws" clauses and unused "import" statements.
f72172b is described below
commit f72172bf66157aedc1ea7c94f6c62ac910e91776
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Tue Sep 17 15:04:42 2019 +0200
Unnecessary "throws" clauses and unused "import" statements.
---
.../apache/commons/math4/analysis/solvers/BrentSolver.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java
index 1e0b3b8..550c7bd 100644
--- a/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java
+++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BrentSolver.java
@@ -17,12 +17,6 @@
package org.apache.commons.math4.analysis.solvers;
-import org.apache.commons.math4.exception.NoBracketingException;
-import org.apache.commons.math4.exception.NumberIsTooLargeException;
-import org.apache.commons.math4.exception.TooManyEvaluationsException;
-import org.apache.commons.math4.util.FastMath;
-import org.apache.commons.numbers.core.Precision;
-
/**
* This class implements the <a href="http://mathworld.wolfram.com/BrentsMethod.html">
* Brent algorithm</a> for finding zeros of real univariate functions.
@@ -90,10 +84,7 @@ public class BrentSolver extends AbstractUnivariateSolver {
* {@inheritDoc}
*/
@Override
- protected double doSolve()
- throws NoBracketingException,
- TooManyEvaluationsException,
- NumberIsTooLargeException {
+ protected double doSolve() {
final double min = getMin();
final double max = getMax();
final double initial = getStartValue();