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
This commit is contained in:
parent
c979a6f0fe
commit
9be92c371c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue