From commits-return-71139-archive-asf-public=cust-asf.ponee.io@commons.apache.org Tue Dec 24 12:14:45 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B841818065E for ; Tue, 24 Dec 2019 13:14:44 +0100 (CET) Received: (qmail 43322 invoked by uid 500); 24 Dec 2019 12:14:43 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 43144 invoked by uid 99); 24 Dec 2019 12:14:42 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Dec 2019 12:14:42 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 90CB28D813; Tue, 24 Dec 2019 12:14:42 +0000 (UTC) Date: Tue, 24 Dec 2019 12:14:45 +0000 To: "commits@commons.apache.org" Subject: [commons-math] 03/07: MATH-1362: Use "IntegerSequence.Incrementor". MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: erans@apache.org In-Reply-To: <157718968246.4561.15974563553044367543@gitbox.apache.org> References: <157718968246.4561.15974563553044367543@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: commons-math X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: aa46bcc64b64b4a3990f5938d0e49ce6f333875a X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20191224121442.90CB28D813@gitbox.apache.org> 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 commit aa46bcc64b64b4a3990f5938d0e49ce6f333875a Author: Gilles Sadowski AuthorDate: Tue Dec 24 11:44:43 2019 +0100 MATH-1362: Use "IntegerSequence.Incrementor". Also removed spurious "throws" clauses. --- .../BaseAbstractUnivariateIntegrator.java | 3 +- .../solvers/BaseAbstractUnivariateSolver.java | 40 ++++++++-------------- .../math4/analysis/solvers/BrentSolverTest.java | 2 +- 3 files changed, 16 insertions(+), 29 deletions(-) diff --git a/src/main/java/org/apache/commons/math4/analysis/integration/BaseAbstractUnivariateIntegrator.java b/src/main/java/org/apache/commons/math4/analysis/integration/BaseAbstractUnivariateIntegrator.java index 690615f..1f89468 100644 --- a/src/main/java/org/apache/commons/math4/analysis/integration/BaseAbstractUnivariateIntegrator.java +++ b/src/main/java/org/apache/commons/math4/analysis/integration/BaseAbstractUnivariateIntegrator.java @@ -221,8 +221,7 @@ public abstract class BaseAbstractUnivariateIntegrator implements UnivariateInte /** * Prepare for computation. - * Subclasses must call this method if they override any of the - * {@code solve} methods. + * Subclasses must call this method if they the {@code integrate} method. * * @param maxEval Maximum number of evaluations. * @param f the integrand function diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java index a65cd41..650a382 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/BaseAbstractUnivariateSolver.java @@ -23,7 +23,7 @@ import org.apache.commons.math4.exception.NoBracketingException; import org.apache.commons.math4.exception.NullArgumentException; import org.apache.commons.math4.exception.NumberIsTooLargeException; import org.apache.commons.math4.exception.TooManyEvaluationsException; -import org.apache.commons.math4.util.Incrementor; +import org.apache.commons.math4.util.IntegerSequence; import org.apache.commons.math4.util.MathUtils; /** @@ -51,7 +51,7 @@ public abstract class BaseAbstractUnivariateSolver= upper}. */ protected void verifyInterval(final double lower, - final double upper) - throws NumberIsTooLargeException { + final double upper) { UnivariateSolverUtils.verifyInterval(lower, upper); } @@ -283,8 +275,7 @@ public abstract class BaseAbstractUnivariateSolver