diff --git a/src/main/java/org/apache/commons/math/MathException.java b/src/main/java/org/apache/commons/math/MathException.java index 14811a3b6..1f674fa58 100644 --- a/src/main/java/org/apache/commons/math/MathException.java +++ b/src/main/java/org/apache/commons/math/MathException.java @@ -34,6 +34,7 @@ import org.apache.commons.math.exception.util.LocalizedFormats; * Adapted from .

* * @version $Id$ +* @deprecated To be removed before 3.0. Please do not use in any new code. */ public class MathException extends Exception { diff --git a/src/main/java/org/apache/commons/math/MathRuntimeException.java b/src/main/java/org/apache/commons/math/MathRuntimeException.java index 966f67c5d..6e1fc0b74 100644 --- a/src/main/java/org/apache/commons/math/MathRuntimeException.java +++ b/src/main/java/org/apache/commons/math/MathRuntimeException.java @@ -35,6 +35,7 @@ import org.apache.commons.math.exception.util.LocalizedFormats; * * @version $Id$ * @since 2.0 +* @deprecated To be removed before 3.0. Please do not use in any new code. */ public class MathRuntimeException extends RuntimeException {