commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [commons-numbers] branch master updated: More specific base class.
Date Fri, 01 Nov 2019 23:11:28 GMT
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 <gilles@harfang.homelinux.org>
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;
 


Mime
View raw message