Author: erans
Date: Wed Oct 30 20:23:06 2013
New Revision: 1537279

URL: http://svn.apache.org/r1537279
Log:
MATH-1050
Deprecating "pow(int,long)" and "pow(long,long)".

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java

Modified: 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java?rev=1537279&r1=1537278&r2=1537279&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java
 (original)
+++ 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java
 Wed Oct 30 20:23:06 2013
@@ -680,7 +680,9 @@ public final class ArithmeticUtils {
      * @param e Exponent (must be positive or zero).
      * @return k<sup>e</sup>
      * @throws NotPositiveException if {@code e < 0}.
+     * @deprecated As of 3.3. Please use {@link #pow(int,int)} instead.
      */
+    @Deprecated
     public static int pow(final int k, long e) throws NotPositiveException {
         if (e < 0) {
             throw new NotPositiveException(LocalizedFormats.EXPONENT, e);
@@ -732,7 +734,9 @@ public final class ArithmeticUtils {
      * @param e Exponent (must be positive or zero).
      * @return k<sup>e</sup>
      * @throws NotPositiveException if {@code e < 0}.
+     * @deprecated As of 3.3. Please use {@link #pow(long,int)} instead.
      */
+    @Deprecated
     public static long pow(final long k, long e) throws NotPositiveException {
         if (e < 0) {
             throw new NotPositiveException(LocalizedFormats.EXPONENT, e);


Reply via email to