Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9AEFE200CA8 for ; Thu, 15 Jun 2017 14:22:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 997C3160BDF; Thu, 15 Jun 2017 12:22:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DFE8F160BC4 for ; Thu, 15 Jun 2017 14:22:58 +0200 (CEST) Received: (qmail 70617 invoked by uid 500); 15 Jun 2017 12:22:58 -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 70608 invoked by uid 99); 15 Jun 2017 12:22:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2017 12:22:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8F165DFF2D; Thu, 15 Jun 2017 12:22:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: erans@apache.org To: commits@commons.apache.org Message-Id: <3236d041212f4248b447b7c7b38f8eee@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [math] MATH-1419 Date: Thu, 15 Jun 2017 12:22:55 +0000 (UTC) archived-at: Thu, 15 Jun 2017 12:22:59 -0000 Repository: commons-math Updated Branches: refs/heads/master 6f27b4ae8 -> 1b53f09c3 MATH-1419 Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/1b53f09c Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/1b53f09c Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/1b53f09c Branch: refs/heads/master Commit: 1b53f09c3a9dcd64dd281c1955b062fc28999366 Parents: 6f27b4a Author: Gilles Authored: Thu Jun 15 14:21:21 2017 +0200 Committer: Gilles Committed: Thu Jun 15 14:21:21 2017 +0200 ---------------------------------------------------------------------- src/changes/changes.xml | 3 +++ .../math4/analysis/polynomials/PolynomialSplineFunction.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/1b53f09c/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 90df1e1..9e4f579 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -54,6 +54,9 @@ If the output is not quite correct, check for invisible trailing spaces! + + "PolynomialSplineFunction": incorrect usage of exception. + add generics to the Frequency class http://git-wip-us.apache.org/repos/asf/commons-math/blob/1b53f09c/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java index b842a40..d7263c2 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java @@ -105,7 +105,7 @@ public class PolynomialSplineFunction implements UnivariateDifferentiableFunctio } if (knots.length < 2) { throw new NumberIsTooSmallException(LocalizedFormats.NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION, - 2, knots.length, false); + knots.length, 2, true); } if (knots.length - 1 != polynomials.length) { throw new DimensionMismatchException(polynomials.length, knots.length);