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:
parent
67745c4526
commit
1e2b8b7d75
|
@ -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. */
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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} */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
/**
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 }));
|
||||
|
|
Loading…
Reference in New Issue