Author: luc Date: Wed Mar 23 19:53:34 2011 New Revision: 1084700 URL: http://svn.apache.org/viewvc?rev=1084700&view=rev Log: removed deprecated code
JIRA: MATH-438 Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ConvergenceException.java 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/MaxEvaluationsExceededException.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/geometry/NotARotationMatrixException.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/IntegratorException.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/events/EventException.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/OptimizationException.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ConvergenceException.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ConvergenceException.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ConvergenceException.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ConvergenceException.java Wed Mar 23 19:53:34 2011 @@ -16,7 +16,6 @@ */ package org.apache.commons.math; -import org.apache.commons.math.exception.util.DummyLocalizable; import org.apache.commons.math.exception.util.Localizable; import org.apache.commons.math.exception.util.LocalizedFormats; @@ -43,19 +42,6 @@ public class ConvergenceException extend * Message formatting is delegated to {@link java.text.MessageFormat}. * @param pattern format specifier * @param arguments format arguments - * @since 1.2 - * @deprecated as of 2.2 replaced by {@link #ConvergenceException(Localizable, Object...)} - */ - @Deprecated - public ConvergenceException(String pattern, Object ... arguments) { - this(new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs an exception with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public ConvergenceException(Localizable pattern, Object ... arguments) { @@ -76,20 +62,6 @@ public class ConvergenceException extend * @param cause the exception or error that caused this exception to be thrown * @param pattern format specifier * @param arguments format arguments - * @since 1.2 - * @deprecated as of 2.2 replaced by {@link #ConvergenceException(Throwable, Localizable, Object...)} - */ - @Deprecated - public ConvergenceException(Throwable cause, String pattern, Object ... arguments) { - this(cause, new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs an exception with specified formatted detail message and root cause. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param cause the exception or error that caused this exception to be thrown - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public ConvergenceException(Throwable cause, Localizable pattern, Object ... arguments) { 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=1084700&r1=1084699&r2=1084700&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 Wed Mar 23 19:53:34 2011 @@ -19,11 +19,10 @@ package org.apache.commons.math; import java.io.PrintStream; import java.io.PrintWriter; import java.text.MessageFormat; -import java.util.Set; import java.util.Locale; +import java.util.Set; import org.apache.commons.math.exception.MathThrowable; -import org.apache.commons.math.exception.util.DummyLocalizable; import org.apache.commons.math.exception.util.Localizable; import org.apache.commons.math.exception.util.LocalizedFormats; @@ -67,19 +66,6 @@ public class MathException extends Excep * Message formatting is delegated to {@link java.text.MessageFormat}. * @param pattern format specifier * @param arguments format arguments - * @deprecated as of 2.2 replaced by {@link #MathException(Localizable, Object...)} - */ - @Deprecated - public MathException(String pattern, Object ... arguments) { - this(new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs a new <code>MathException</code> with specified - * formatted detail message. - * 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) { @@ -108,22 +94,6 @@ public class MathException extends Excep * to be thrown. * @param pattern format specifier * @param arguments format arguments - * @since 1.2 - * @deprecated as of 2.2 replaced by {@link #MathException(Throwable, Localizable, Object...)} - */ - @Deprecated - public MathException(Throwable rootCause, String pattern, Object ... arguments) { - this(rootCause, new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs a new <code>MathException</code> with specified - * formatted detail message and nested <code>Throwable</code> root cause. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param rootCause the exception or error that caused this exception - * to be thrown. - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public MathException(Throwable rootCause, Localizable pattern, Object ... arguments) { @@ -153,17 +123,6 @@ public class MathException extends Excep throw new UnsupportedOperationException("This class is deprecated; calling this method is a bug."); } - /** Gets the pattern used to build the message of this throwable. - * - * @return the pattern used to build the message of this throwable - * @since 1.2 - * @deprecated as of 2.2. - */ - @Deprecated - public String getPattern() { - return pattern.getSourceString(); - } - /** Gets the message in a specified locale. * * @param locale Locale in which the message should be translated 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=1084700&r1=1084699&r2=1084700&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 Wed Mar 23 19:53:34 2011 @@ -24,11 +24,10 @@ import java.text.MessageFormat; import java.text.ParseException; import java.util.ConcurrentModificationException; import java.util.Locale; -import java.util.Set; import java.util.NoSuchElementException; +import java.util.Set; import org.apache.commons.math.exception.MathThrowable; -import org.apache.commons.math.exception.util.DummyLocalizable; import org.apache.commons.math.exception.util.Localizable; import org.apache.commons.math.exception.util.LocalizedFormats; @@ -59,19 +58,6 @@ public class MathRuntimeException extend * Message formatting is delegated to {@link java.text.MessageFormat}. * @param pattern format specifier * @param arguments format arguments - * @deprecated as of 2.2 replaced by {@link #MathRuntimeException(Localizable, Object...)} - */ - @Deprecated - public MathRuntimeException(final String pattern, final Object ... arguments) { - this(new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs a new <code>MathRuntimeException</code> with specified - * formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public MathRuntimeException(final Localizable pattern, final Object ... arguments) { @@ -100,22 +86,6 @@ public class MathRuntimeException extend * to be thrown. * @param pattern format specifier * @param arguments format arguments - * @deprecated as of 2.2 replaced by {@link #MathRuntimeException(Throwable, Localizable, Object...)} - */ - @Deprecated - public MathRuntimeException(final Throwable rootCause, - final String pattern, final Object ... arguments) { - this(rootCause, new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs a new <code>MathRuntimeException</code> with specified - * formatted detail message and nested <code>Throwable</code> root cause. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param rootCause the exception or error that caused this exception - * to be thrown. - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public MathRuntimeException(final Throwable rootCause, @@ -159,16 +129,6 @@ public class MathRuntimeException extend return new MessageFormat(pattern.getLocalizedString(locale), locale).format(arguments); } - /** Gets the pattern used to build the message of this throwable. - * - * @return the pattern used to build the message of this throwable - * @deprecated as of 2.2 - */ - @Deprecated - public String getPattern() { - return pattern.getSourceString(); - } - /** Gets the message in a specified locale. * * @param locale Locale in which the message should be translated @@ -223,20 +183,6 @@ 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); - } - - /** - * Constructs a new <code>ArithmeticException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static ArithmeticException createArithmeticException(final Localizable pattern, @@ -267,20 +213,6 @@ 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); - } - - /** - * Constructs a new <code>ArrayIndexOutOfBoundsException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static ArrayIndexOutOfBoundsException createArrayIndexOutOfBoundsException(final Localizable pattern, @@ -311,20 +243,6 @@ 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); - } - - /** - * Constructs a new <code>EOFException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static EOFException createEOFException(final Localizable pattern, @@ -372,20 +290,6 @@ 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); - } - - /** - * Constructs a new <code>IllegalArgumentException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static IllegalArgumentException createIllegalArgumentException(final Localizable pattern, @@ -429,20 +333,6 @@ 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); - } - - /** - * Constructs a new <code>IllegalStateException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static IllegalStateException createIllegalStateException(final Localizable pattern, @@ -473,20 +363,6 @@ 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); - } - - /** - * Constructs a new <code>ConcurrentModificationException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static ConcurrentModificationException createConcurrentModificationException(final Localizable pattern, @@ -517,20 +393,6 @@ 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); - } - - /** - * Constructs a new <code>NoSuchElementException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception * @since 2.2 */ public static NoSuchElementException createNoSuchElementException(final Localizable pattern, @@ -556,102 +418,6 @@ public class MathRuntimeException extend } /** - * Constructs a new <code>UnsupportedOperationException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception - * @since 2.2 - * @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() { - - /** Serializable version identifier. */ - private static final long serialVersionUID = -4284649691002411505L; - - /** {@inheritDoc} */ - @Override - public String getMessage() { - return buildMessage(Locale.US, pattern, arguments); - } - - /** {@inheritDoc} */ - @Override - public String getLocalizedMessage() { - return buildMessage(Locale.getDefault(), pattern, arguments); - } - - }; - } - - /** - * Constructs a new <code>NullPointerException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @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); - } - - /** - * Constructs a new <code>NullPointerException</code> with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param pattern format specifier - * @param arguments format arguments - * @return built exception - * @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() { - - /** Serializable version identifier. */ - private static final long serialVersionUID = 451965530686593945L; - - /** {@inheritDoc} */ - @Override - public String getMessage() { - return buildMessage(Locale.US, pattern, arguments); - } - - /** {@inheritDoc} */ - @Override - public String getLocalizedMessage() { - return buildMessage(Locale.getDefault(), pattern, arguments); - } - - }; - } - - /** - * Constructs a new <code>ParseException</code> with specified - * formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param offset offset at which error occurred - * @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) { - return createParseException(offset, new DummyLocalizable(pattern), arguments); - } - - /** * Constructs a new <code>ParseException</code> with specified * formatted detail message. * Message formatting is delegated to {@link java.text.MessageFormat}. Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java Wed Mar 23 19:53:34 2011 @@ -17,8 +17,6 @@ package org.apache.commons.math; -import org.apache.commons.math.ConvergenceException; -import org.apache.commons.math.exception.util.DummyLocalizable; import org.apache.commons.math.exception.util.Localizable; import org.apache.commons.math.exception.util.LocalizedFormats; @@ -52,20 +50,6 @@ public class MaxEvaluationsExceededExcep * @param maxEvaluations the exceeded maximal number of evaluations * @param pattern format specifier * @param arguments format arguments - * @deprecated as of 2.2 replaced by {@link #MaxEvaluationsExceededException(int, Localizable, Object...)} - */ - @Deprecated - public MaxEvaluationsExceededException(final int maxEvaluations, - final String pattern, final Object ... arguments) { - this(maxEvaluations, new DummyLocalizable(pattern), arguments); - } - - /** - * Constructs an exception with specified formatted detail message. - * Message formatting is delegated to {@link java.text.MessageFormat}. - * @param maxEvaluations the exceeded maximal number of evaluations - * @param pattern format specifier - * @param arguments format arguments * @since 2.2 */ public MaxEvaluationsExceededException(final int maxEvaluations, Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/geometry/NotARotationMatrixException.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/geometry/NotARotationMatrixException.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/geometry/NotARotationMatrixException.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/geometry/NotARotationMatrixException.java Wed Mar 23 19:53:34 2011 @@ -39,18 +39,6 @@ public class NotARotationMatrixException * 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) - * @deprecated as of 2.2 replaced by {@link #NotARotationMatrixException(Localizable, Object...)} - */ - @Deprecated - public NotARotationMatrixException(String specifier, Object ... parts) { - super(specifier, parts); - } - - /** - * Simple constructor. - * 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 NotARotationMatrixException(Localizable specifier, Object ... 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=1084700&r1=1084699&r2=1084700&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 Wed Mar 23 19:53:34 2011 @@ -36,17 +36,6 @@ 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) - * @deprecated as of 2.2 replaced by {@link #IntegratorException(Localizable, Object...)} - */ - @Deprecated - public IntegratorException(final String specifier, final Object ... parts) { - super(specifier, parts); - } - - /** Simple constructor. - * 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) { Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/events/EventException.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/events/EventException.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/events/EventException.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/events/EventException.java Wed Mar 23 19:53:34 2011 @@ -35,17 +35,6 @@ public class EventException extends Math * 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) - * @deprecated as of 2.2 replaced by {@link #EventException(Localizable, Object...)} - */ - @Deprecated - public EventException(final String specifier, final Object ... parts) { - super(specifier, parts); - } - - /** Simple constructor. - * 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 EventException(final Localizable specifier, final Object ... parts) { Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/OptimizationException.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/OptimizationException.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/OptimizationException.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/OptimizationException.java Wed Mar 23 19:53:34 2011 @@ -39,18 +39,6 @@ public class OptimizationException exten * 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) - * @deprecated as of 2.2 replaced by {@link #OptimizationException(Localizable, Object...)} - */ - @Deprecated - public OptimizationException(String specifier, Object ... parts) { - this(new DummyLocalizable(specifier), parts); - } - - /** - * Simple constructor. - * 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 OptimizationException(Localizable specifier, Object ... parts) { Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=1084700&r1=1084699&r2=1084700&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Wed Mar 23 19:53:34 2011 @@ -1245,21 +1245,6 @@ public final class MathUtils { } /** - * Scale a number by 2<sup>scaleFactor</sup>. - * <p>If {@code d} is 0 or NaN or Infinite, it is returned unchanged.</p> - * - * @param d base number - * @param scaleFactor power of two by which d should be multiplied - * @return d × 2<sup>scaleFactor</sup> - * @since 2.0 - * @deprecated as of 2.2, replaced by {@link FastMath#scalb(double, int)} - */ - @Deprecated - public static double scalb(final double d, final int scaleFactor) { - return FastMath.scalb(d, scaleFactor); - } - - /** * Normalize an angle in a 2&pi wide interval around a center value. * <p>This method has three main uses:</p> * <ul>