Add missing @Deprecated annotations

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1030796 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-11-04 01:41:33 +00:00
parent 67745c4526
commit 1e2b8b7d75
13 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,7 @@ package org.apache.commons.math;
* @deprecated in 2.2 (to be removed in 3.0). Please use
* {@link org.apache.commons.math.exception.OutOfRangeException} instead.
*/
@Deprecated
public class ArgumentOutsideDomainException extends FunctionEvaluationException {
/** Serializable version identifier. */

View File

@ -28,6 +28,7 @@ package org.apache.commons.math;
* @since 2.0
* @deprecated in 2.2 (to be removed in 3.0).
*/
@Deprecated
public interface ConvergingAlgorithm {
/**

View File

@ -25,6 +25,7 @@ package org.apache.commons.math;
* @since 2.0
* @deprecated in 2.2 (to be removed in 3.0).
*/
@Deprecated
public abstract class ConvergingAlgorithmImpl implements ConvergingAlgorithm {
/** Maximum absolute error. */
@ -58,6 +59,7 @@ public abstract class ConvergingAlgorithmImpl implements ConvergingAlgorithm {
* @deprecated in 2.2. Derived classes should use the "setter" methods
* in order to assign meaningful values to all the instances variables.
*/
@Deprecated
protected ConvergingAlgorithmImpl(final int defaultMaximalIterationCount,
final double defaultAbsoluteAccuracy) {
this.defaultAbsoluteAccuracy = defaultAbsoluteAccuracy;
@ -76,6 +78,7 @@ public abstract class ConvergingAlgorithmImpl implements ConvergingAlgorithm {
* @deprecated in 2.2 (to be removed as soon as the single non-default one
* has been removed).
*/
@Deprecated
protected ConvergingAlgorithmImpl() {}
/** {@inheritDoc} */

View File

@ -25,6 +25,7 @@ import org.apache.commons.math.exception.util.LocalizedFormats;
* @version $Revision$ $Date$
* @deprecated in 2.2 (to be removed in 3.0).
*/
@Deprecated
public class DuplicateSampleAbscissaException extends MathException {
/** Serializable version identifier */

View File

@ -31,6 +31,7 @@ import org.apache.commons.math.linear.ArrayRealVector;
* @deprecated in 2.2 (to be removed in 3.0). Please use
* {@link org.apache.commons.math.exception.FunctionEvaluationException} instead.
*/
@Deprecated
public class FunctionEvaluationException extends MathException {
/** Serializable version identifier. */

View File

@ -559,6 +559,7 @@ public class MathRuntimeException extends RuntimeException {
* @deprecated in 2.2. Please use {@link org.apache.commons.math.exception.MathUnsupportedOperationException}
* instead.
*/
@Deprecated
public static UnsupportedOperationException createUnsupportedOperationException(final Localizable pattern,
final Object ... arguments) {
return new UnsupportedOperationException() {
@ -604,6 +605,7 @@ public class MathRuntimeException extends RuntimeException {
* @since 2.2
* @deprecated in 2.2. Checks for "null" must not be performed in Commons-Math.
*/
@Deprecated
public static NullPointerException createNullPointerException(final Localizable pattern,
final Object ... arguments) {
return new NullPointerException() {

View File

@ -40,6 +40,7 @@ import org.apache.commons.math.exception.util.LocalizedFormats;
* {@link org.apache.commons.math.analysis.interpolation.SmoothingPolynomialBicubicSplineInterpolator}.
* This class will be removed in math 3.0.
*/
@Deprecated
public class SmoothingBicubicSplineInterpolator
implements BivariateRealGridInterpolator {
/**

View File

@ -29,6 +29,7 @@ import org.apache.commons.math.exception.util.Localizable;
* @deprecated since 2.2. Please use the classes in the
* {@link org.apache.commons.math.exception} package.
*/
@Deprecated
public class InvalidMatrixException extends MathRuntimeException {
/** Serializable version identifier. */

View File

@ -28,6 +28,7 @@ import org.apache.commons.math.exception.util.Localizable;
* @deprecated in 2.2 (to be removed in 3.0). Please use the exceptions in package
* {@link org.apache.commons.math.exception}.
*/
@Deprecated
public class MatrixIndexException extends MathRuntimeException {
/** Serializable version identifier */

View File

@ -34,6 +34,7 @@ package org.apache.commons.math.optimization;
* @since 2.0
* @deprecated To be removed in 3.0.
*/
@Deprecated
public interface RealConvergenceChecker {
/** Check if the optimization algorithm has converged considering the last points.

View File

@ -221,6 +221,7 @@ public class NonLinearConjugateGradientOptimizer
* @exception MathIllegalStateException if no bracket can be found
* @deprecated in 2.2 (must be replaced with "BracketFinder").
*/
@Deprecated
private double findUpperBound(final UnivariateRealFunction f,
final double a, final double h)
throws FunctionEvaluationException {

View File

@ -28,6 +28,7 @@ import org.junit.Test;
* @version $Revision$ $Date$
* @deprecated To be removed in math 3.0 (when the class for which it is a test will also be removed).
*/
@Deprecated
public final class SmoothingBicubicSplineInterpolatorTest {
/**
* Test preconditions.

View File

@ -439,6 +439,7 @@ public final class MathUtilsTest extends TestCase {
* @deprecated To be removed in release 3.0 (replaced by {@link
* #testArrayEqualsIncludingNaN()}.
*/
@Deprecated
public void testArrayEquals() {
assertFalse(MathUtils.equals(new double[] { 1d }, null));
assertFalse(MathUtils.equals(null, new double[] { 1d }));