commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r651252 - in /commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math: ConvergenceException.java FunctionEvaluationException.java MathConfigurationException.java MathException.java linear/MatrixIndexException.java
Date Thu, 24 Apr 2008 13:17:44 GMT
Author: luc
Date: Thu Apr 24 06:17:30 2008
New Revision: 651252

URL: http://svn.apache.org/viewvc?rev=651252&view=rev
Log:
removed deprecated exceptions constructors

Modified:
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ConvergenceException.java
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/FunctionEvaluationException.java
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathConfigurationException.java
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathException.java
    commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/MatrixIndexException.java

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ConvergenceException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ConvergenceException.java?rev=651252&r1=651251&r2=651252&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ConvergenceException.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ConvergenceException.java
Thu Apr 24 06:17:30 2008
@@ -65,30 +65,4 @@
         super(pattern, arguments, cause);
     }
     
-    /**
-     * Constructs a new <code>ConvergenceException</code> with specified
-     * detail message and nested <code>Throwable</code> root cause.
-     *
-     * @param msg  the error message.
-     * @param rootCause  the exception or error that caused this exception
-     * to be thrown.
-     * @deprecated as of 1.2, replaced by 
-     * {@link #ConvergenceException(String, Object[], Throwable)}
-     */
-    public ConvergenceException(String msg, Throwable rootCause) {
-        super(msg, rootCause);
-    }
-    
-    /**
-     * Constructs a new <code>ConvergenceException</code> with specified
-     * detail message.
-     *
-     * @param msg  the error message.
-     * @deprecated as of 1.2, replaced by 
-     * {@link #ConvergenceException(String, Object[])}
-     */
-    public ConvergenceException(String msg) {
-        super(msg);
-    }
-
 }

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/FunctionEvaluationException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/FunctionEvaluationException.java?rev=651252&r1=651251&r2=651252&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/FunctionEvaluationException.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/FunctionEvaluationException.java
Thu Apr 24 06:17:30 2008
@@ -27,7 +27,7 @@
 public class FunctionEvaluationException extends MathException  {
     
     /** Serializable version identifier. */
-    private static final long serialVersionUID = -7619974756160279127L;
+    private static final long serialVersionUID = -2193260774031645876L;
 
     /** Argument causing function evaluation failure */
     private double argument = Double.NaN;
@@ -45,19 +45,6 @@
     }
     
     /**
-     * Construct an exception using the given argument and message
-     * text.
-     * 
-     * @param argument  the failing function argument 
-     * @param message  the exception message text
-     * @deprecated as of 1.2, replaced by {@link #FunctionEvaluationException(double, String,
Object[])}
-     */
-    public FunctionEvaluationException(double argument, String message) {
-        super(message);
-        this.argument = argument;
-    }
-
-    /**
      * Constructs an exception with specified formatted detail message.
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param argument  the failing function argument 
@@ -68,20 +55,6 @@
     public FunctionEvaluationException(double argument,
                                        String pattern, Object[] arguments) {
         super(pattern, arguments);
-        this.argument = argument;
-    }
-
-    /**
-     * Construct an exception with the given argument, message and root cause.
-     * 
-     * @param argument  the failing function argument 
-     * @param message descriptive error message
-     * @param cause root cause.
-     * @deprecated as of 1.2, replaced by {@link #FunctionEvaluationException(double, String,
Object[], Throwable)}
-     */
-    public FunctionEvaluationException(double argument,
-                                       String message, Throwable cause) {
-        super(message, cause);
         this.argument = argument;
     }
 

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathConfigurationException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathConfigurationException.java?rev=651252&r1=651251&r2=651252&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathConfigurationException.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathConfigurationException.java
Thu Apr 24 06:17:30 2008
@@ -25,7 +25,8 @@
 public class MathConfigurationException extends MathException implements Serializable{
 
     /** Serializable version identifier */
-    private static final long serialVersionUID = -4056541384141349722L;
+    private static final long serialVersionUID = 5261476508226103366L;
+
     /**
      * Default constructor.
      */
@@ -34,15 +35,6 @@
     }
     
     /**
-     * Construct an exception with the given message.
-     * @param message descriptive error message
-     * @deprecated as of 1.2, replaced by {@link #MathConfigurationException(String, Object[])}
-     */
-    public MathConfigurationException(String message) {
-        super(message);
-    }
-
-    /**
      * Constructs an exception with specified formatted detail message.
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param pattern format specifier
@@ -51,16 +43,6 @@
      */
     public MathConfigurationException(String pattern, Object[] arguments) {
         super(pattern, arguments);
-    }
-
-    /**
-     * Construct an exception with the given message and root cause.
-     * @param message descriptive error message
-     * @param cause  the exception or error that caused this exception to be thrown
-     * @deprecated as of 1.2, replaced by {@link #MathConfigurationException(String, Object[],
Throwable)}
-     */
-    public MathConfigurationException(String message, Throwable cause) {
-        super(message, cause);
     }
 
     /**

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathException.java?rev=651252&r1=651251&r2=651252&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathException.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/MathException.java
Thu Apr 24 06:17:30 2008
@@ -36,7 +36,7 @@
 public class MathException extends Exception {
     
     /** Serializable version identifier */
-    private static final long serialVersionUID = -8602234299177097102L;
+    private static final long serialVersionUID = 1428666635974829194L;
 
     /**
      * Does JDK support nested exceptions?
@@ -129,20 +129,6 @@
     
     /**
      * Constructs a new <code>MathException</code> with specified
-     * detail message.
-     *
-     * @param msg  the error message.
-     * @deprecated as of 1.2, replaced by {@link #MathException(String, Object[])}
-     */
-    public MathException(String msg) {
-        super(msg);
-        this.pattern   = msg;
-        this.arguments = new Object[0];
-        this.rootCause = null;
-    }
-
-    /**
-     * Constructs a new <code>MathException</code> with specified
      * formatted detail message.
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param pattern format specifier
@@ -169,22 +155,6 @@
         this.rootCause = rootCause;
     }
     
-    /**
-     * Constructs a new <code>MathException</code> with specified
-     * detail message and nested <code>Throwable</code> root cause.
-     *
-     * @param msg  the error message.
-     * @param rootCause  the exception or error that caused this exception
-     *                   to be thrown.
-     * @deprecated as of 1.2, replaced by {@link #MathException(String, Object[], Throwable)}
-     */
-    public MathException(String msg, Throwable rootCause) {
-        super(msg);
-        this.pattern   = msg;
-        this.arguments = new Object[0];
-        this.rootCause = rootCause;
-    }
-
     /**
      * Constructs a new <code>MathException</code> with specified
      * formatted detail message and nested <code>Throwable</code> root cause.

Modified: commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/MatrixIndexException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/MatrixIndexException.java?rev=651252&r1=651251&r2=651252&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/MatrixIndexException.java
(original)
+++ commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/linear/MatrixIndexException.java
Thu Apr 24 06:17:30 2008
@@ -25,15 +25,7 @@
 public class MatrixIndexException extends RuntimeException {
 
     /** Serializable version identifier */
-    private static final long serialVersionUID = -1341109412864309526L;
-
-    /**
-     * Default constructor.
-     * @deprecated as of 1.2 replaced by #MatrixIndexException(String)
-     */
-    public MatrixIndexException() {
-        this(null);
-    }
+    private static final long serialVersionUID = 3728473373420246054L;
 
     /**
      * Construct an exception with the given message and root cause.



Mime
View raw message