From 9be92c371cb3c5f31b29cc4111cac2782880656c Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Wed, 30 Oct 2013 20:23:06 +0000 Subject: [PATCH] MATH-1050 Deprecating "pow(int,long)" and "pow(long,long)". git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537279 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/math3/util/ArithmeticUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java b/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java index eb474a3b7..b807d9caf 100644 --- a/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java +++ b/src/main/java/org/apache/commons/math3/util/ArithmeticUtils.java @@ -680,7 +680,9 @@ public final class ArithmeticUtils { * @param e Exponent (must be positive or zero). * @return ke * @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 ke * @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);