commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r955693 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math: MathException.java MathRuntimeException.java estimation/EstimationException.java ode/DerivativeException.java ode/IntegratorException.java
Date Thu, 17 Jun 2010 18:15:28 GMT
Author: luc
Date: Thu Jun 17 18:15:27 2010
New Revision: 955693

URL: http://svn.apache.org/viewvc?rev=955693&view=rev
Log:
added missing @since and @deprecated

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/estimation/EstimationException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/DerivativeException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java?rev=955693&r1=955692&r2=955693&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathException.java Thu
Jun 17 18:15:27 2010
@@ -78,6 +78,7 @@ public class MathException extends Excep
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param pattern format specifier
      * @param arguments format arguments
+     * @since 2.2
      */
     public MathException(Localizable pattern, Object ... arguments) {
       this.pattern   = pattern;
@@ -121,7 +122,7 @@ public class MathException extends Excep
      * to be thrown.
      * @param pattern format specifier
      * @param arguments format arguments
-     * @since 1.2
+     * @since 2.2
      */
     public MathException(Throwable rootCause, Localizable pattern, Object ... arguments)
{
       super(rootCause);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java?rev=955693&r1=955692&r2=955693&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/MathRuntimeException.java
Thu Jun 17 18:15:27 2010
@@ -217,7 +217,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createArithmeticException(Localizable, Object...)}
      */
+    @Deprecated
     public static ArithmeticException createArithmeticException(final String pattern,
                                                                 final Object ... arguments)
{
         return createArithmeticException(new DummyLocalizable(pattern), arguments);
@@ -259,7 +261,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createArrayIndexOutOfBoundsException(Localizable,
Object...)}
      */
+    @Deprecated
     public static ArrayIndexOutOfBoundsException createArrayIndexOutOfBoundsException(final
String pattern,
                                                                                       final
Object ... arguments) {
         return createArrayIndexOutOfBoundsException(new DummyLocalizable(pattern), arguments);
@@ -301,7 +305,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createEOFException(Localizable, Object...)}
      */
+    @Deprecated
     public static EOFException createEOFException(final String pattern,
                                                   final Object ... arguments) {
         return createEOFException(new DummyLocalizable(pattern), arguments);
@@ -313,6 +319,7 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @since 2.2
      */
     public static EOFException createEOFException(final Localizable pattern,
                                                   final Object ... arguments) {
@@ -359,7 +366,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createIllegalArgumentException(Localizable,
Object...)}
      */
+    @Deprecated
     public static IllegalArgumentException createIllegalArgumentException(final String pattern,
                                                                           final Object ...
arguments) {
         return createIllegalArgumentException(new DummyLocalizable(pattern), arguments);
@@ -414,7 +423,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createIllegalStateException(Localizable,
Object...)}
      */
+    @Deprecated
     public static IllegalStateException createIllegalStateException(final String pattern,
                                                                     final Object ... arguments)
{
         return createIllegalStateException(new DummyLocalizable(pattern), arguments);
@@ -456,7 +467,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createConcurrentModificationException(Localizable,
Object...)}
      */
+    @Deprecated
     public static ConcurrentModificationException createConcurrentModificationException(final
String pattern,
                                                                                         final
Object ... arguments) {
         return createConcurrentModificationException(new DummyLocalizable(pattern), arguments);
@@ -498,7 +511,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createNoSuchElementException(Localizable,
Object...)}
      */
+    @Deprecated
     public static NoSuchElementException createNoSuchElementException(final String pattern,
                                                                       final Object ... arguments)
{
         return createNoSuchElementException(new DummyLocalizable(pattern), arguments);
@@ -540,7 +555,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createNullPointerException(Localizable,
Object...)}
      */
+    @Deprecated
     public static NullPointerException createNullPointerException(final String pattern,
                                                                   final Object ... arguments)
{
         return createNullPointerException(new DummyLocalizable(pattern), arguments);
@@ -584,7 +601,9 @@ public class MathRuntimeException extend
      * @param pattern format specifier
      * @param arguments format arguments
      * @return built exception
+     * @deprecated as of 2.2 replaced by {@link #createParseException(int, Localizable, Object...)}
      */
+    @Deprecated
     public static ParseException createParseException(final int offset,
                                                       final String pattern,
                                                       final Object ... arguments) {

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/estimation/EstimationException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/estimation/EstimationException.java?rev=955693&r1=955692&r2=955693&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/estimation/EstimationException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/estimation/EstimationException.java
Thu Jun 17 18:15:27 2010
@@ -52,6 +52,7 @@ extends MathException {
      * Build an exception by translating and formating a message
      * @param specifier format specifier (to be translated)
      * @param parts to insert in the format (no translation)
+     * @since 2.2
      */
     public EstimationException(Localizable specifier, Object ... parts) {
         super(specifier, parts);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/DerivativeException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/DerivativeException.java?rev=955693&r1=955692&r2=955693&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/DerivativeException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/DerivativeException.java
Thu Jun 17 18:15:27 2010
@@ -49,6 +49,7 @@ public class DerivativeException
    * Build an exception by translating and formating a message
    * @param specifier format specifier (to be translated)
    * @param parts to insert in the format (no translation)
+   * @since 2.2
    */
   public DerivativeException(final Localizable specifier, final Object ... parts) {
     super(specifier, parts);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java?rev=955693&r1=955692&r2=955693&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java
Thu Jun 17 18:15:27 2010
@@ -47,6 +47,7 @@ public class IntegratorException
      * Build an exception by translating and formating a message
      * @param specifier format specifier (to be translated)
      * @param parts to insert in the format (no translation)
+     * @since 2.2
      */
     public IntegratorException(final Localizable specifier, final Object ... parts) {
       super(specifier, parts);



Mime
View raw message