From commits-return-70227-archive-asf-public=cust-asf.ponee.io@commons.apache.org Fri Nov 1 23:11:30 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 DAFF6180626 for ; Sat, 2 Nov 2019 00:11:29 +0100 (CET) Received: (qmail 42903 invoked by uid 500); 1 Nov 2019 23:11:29 -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 42894 invoked by uid 99); 1 Nov 2019 23:11:29 -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; Fri, 01 Nov 2019 23:11:29 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id E419F805E6; Fri, 1 Nov 2019 23:11:28 +0000 (UTC) Date: Fri, 01 Nov 2019 23:11:28 +0000 To: "commits@commons.apache.org" Subject: [commons-numbers] branch master updated: More specific base class. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <157264988888.3826.145656366230095815@gitbox.apache.org> From: erans@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: commons-numbers X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 97eaea379c9f9b6a4ee752827badadc6cec12f83 X-Git-Newrev: 8174f5b27746d4c441e1c91f8c61708128f39775 X-Git-Rev: 8174f5b27746d4c441e1c91f8c61708128f39775 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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-numbers.git The following commit(s) were added to refs/heads/master by this push: new 8174f5b More specific base class. 8174f5b is described below commit 8174f5b27746d4c441e1c91f8c61708128f39775 Author: Gilles Sadowski AuthorDate: Sat Nov 2 00:10:50 2019 +0100 More specific base class. --- .../src/main/java/org/apache/commons/numbers/complex/Complex.java | 6 +++--- .../main/java/org/apache/commons/numbers/quaternion/Quaternion.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java index 9c55c53..afced7e 100644 --- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java +++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java @@ -150,8 +150,8 @@ public final class Complex implements Serializable { * * @param s String representation. * @return an instance. - * @throws IllegalArgumentException if the string does not - * conform to the specification. + * @throws NumberFormatException if the string does not conform + * to the specification. */ public static Complex parse(String s) { final int len = s.length(); @@ -1379,7 +1379,7 @@ public final class Complex implements Serializable { } /** See {@link #parse(String)}. */ - private static class ComplexParsingException extends IllegalArgumentException { + private static class ComplexParsingException extends NumberFormatException { /** Serializable version identifier. */ private static final long serialVersionUID = 20180430L; diff --git a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java index 08683d2..bb93755 100644 --- a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java +++ b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java @@ -639,8 +639,8 @@ public final class Quaternion implements Serializable { * * @param s String representation. * @return an instance. - * @throws IllegalArgumentException if the string does not - * conform to the specification. + * @throws NumberFormatException if the string does not conform + * to the specification. */ public static Quaternion parse(String s) { final int len = s.length(); @@ -704,7 +704,7 @@ public final class Quaternion implements Serializable { } /** See {@link #parse(String)}. */ - private static class QuaternionParsingException extends IllegalArgumentException { + private static class QuaternionParsingException extends NumberFormatException { /** Serializable version identifier. */ private static final long serialVersionUID = 20181128L;