You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ra...@apache.org on 2017/01/28 19:57:33 UTC
commons-numbers git commit: NUMBERS-6: Remove @since from classes as
there has not been a release of common-numbers yet.
Repository: commons-numbers
Updated Branches:
refs/heads/fraction__NUMBERS-6 ca71f3559 -> fe27e8ec9
NUMBERS-6: Remove @since from classes as there has not been a release of common-numbers yet.
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/fe27e8ec
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/fe27e8ec
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/fe27e8ec
Branch: refs/heads/fraction__NUMBERS-6
Commit: fe27e8ec9e02ce99ed840d56ab6ecd6303fd2f3f
Parents: ca71f35
Author: Ray DeCampo <ra...@decampo.org>
Authored: Sat Jan 28 14:56:34 2017 -0500
Committer: Ray DeCampo <ra...@decampo.org>
Committed: Sat Jan 28 14:56:34 2017 -0500
----------------------------------------------------------------------
.../commons/numbers/core/ArithmeticUtils.java | 19 -------------------
.../commons/numbers/fraction/AbstractFormat.java | 1 -
.../commons/numbers/fraction/BigFraction.java | 2 --
.../numbers/fraction/BigFractionField.java | 1 -
.../numbers/fraction/BigFractionFormat.java | 2 --
.../commons/numbers/fraction/Fraction.java | 2 --
.../fraction/FractionConversionException.java | 2 --
.../commons/numbers/fraction/FractionField.java | 1 -
.../commons/numbers/fraction/FractionFormat.java | 2 --
.../fraction/ProperBigFractionFormat.java | 2 --
.../numbers/fraction/ProperFractionFormat.java | 2 --
11 files changed, 36 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java
----------------------------------------------------------------------
diff --git a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java
index 343d24b..4f1d6cf 100644
--- a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java
+++ b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java
@@ -38,7 +38,6 @@ public final class ArithmeticUtils {
* @return the sum {@code x+y}
* @throws NumbersArithmeticException if the result can not be represented
* as an {@code int}.
- * @since 1.1
*/
public static int addAndCheck(int x, int y)
throws NumbersArithmeticException {
@@ -56,7 +55,6 @@ public final class ArithmeticUtils {
* @param b an addend
* @return the sum {@code a+b}
* @throws NumbersArithmeticException if the result can not be represented as an long
- * @since 1.2
*/
public static long addAndCheck(long a, long b) throws NumbersArithmeticException {
return addAndCheck(a, b, "overflow in addition: {0} + {1}");
@@ -88,7 +86,6 @@ public final class ArithmeticUtils {
* @return the greatest common divisor (never negative).
* @throws NumbersArithmeticException if the result cannot be represented as
* a non-negative {@code int} value.
- * @since 1.1
*/
public static int gcd(int p, int q) throws NumbersArithmeticException {
int a = p;
@@ -228,7 +225,6 @@ public final class ArithmeticUtils {
* @return the greatest common divisor, never negative.
* @throws NumbersArithmeticException if the result cannot be represented as
* a non-negative {@code long} value.
- * @since 2.1
*/
public static long gcd(final long p, final long q) throws NumbersArithmeticException {
long u = p;
@@ -308,7 +304,6 @@ public final class ArithmeticUtils {
* @return the least common multiple, never negative.
* @throws NumbersArithmeticException if the result cannot be represented as
* a non-negative {@code int} value.
- * @since 1.1
*/
public static int lcm(int a, int b) throws NumbersArithmeticException {
if (a == 0 || b == 0){
@@ -342,7 +337,6 @@ public final class ArithmeticUtils {
* @return the least common multiple, never negative.
* @throws NumbersArithmeticException if the result cannot be represented
* as a non-negative {@code long} value.
- * @since 2.1
*/
public static long lcm(long a, long b) throws NumbersArithmeticException {
if (a == 0 || b == 0){
@@ -364,7 +358,6 @@ public final class ArithmeticUtils {
* @return the product {@code x * y}.
* @throws NumbersArithmeticException if the result can not be
* represented as an {@code int}.
- * @since 1.1
*/
public static int mulAndCheck(int x, int y) throws NumbersArithmeticException {
long m = ((long)x) * ((long)y);
@@ -382,7 +375,6 @@ public final class ArithmeticUtils {
* @return the product {@code a * b}.
* @throws NumbersArithmeticException if the result can not be represented
* as a {@code long}.
- * @since 1.2
*/
public static long mulAndCheck(long a, long b) throws NumbersArithmeticException {
long ret;
@@ -436,7 +428,6 @@ public final class ArithmeticUtils {
* @return the difference {@code x - y}.
* @throws NumbersArithmeticException if the result can not be represented
* as an {@code int}.
- * @since 1.1
*/
public static int subAndCheck(int x, int y) throws NumbersArithmeticException {
long s = (long)x - (long)y;
@@ -454,7 +445,6 @@ public final class ArithmeticUtils {
* @return the difference {@code a - b}.
* @throws NumbersArithmeticException if the result can not be represented as a
* {@code long}.
- * @since 1.2
*/
public static long subAndCheck(long a, long b) throws NumbersArithmeticException {
long ret;
@@ -619,7 +609,6 @@ public final class ArithmeticUtils {
* @return the sum {@code a + b}.
* @throws NumbersArithmeticException if the result cannot be represented
* as a {@code long}.
- * @since 1.2
*/
private static long addAndCheck(long a, long b, String message) throws NumbersArithmeticException {
final long result = a + b;
@@ -649,8 +638,6 @@ public final class ArithmeticUtils {
* @param divisor the value doing the dividing
* @return the unsigned remainder of the first argument divided by
* the second argument.
- *
- * @since 4.0
*/
public static int remainderUnsigned(int dividend, int divisor) {
if (divisor >= 0) {
@@ -679,8 +666,6 @@ public final class ArithmeticUtils {
* @param divisor the value doing the dividing
* @return the unsigned remainder of the first argument divided by
* the second argument.
- *
- * @since 4.0
*/
public static long remainderUnsigned(long dividend, long divisor) {
if (divisor >= 0L) {
@@ -714,8 +699,6 @@ public final class ArithmeticUtils {
* @param divisor the value doing the dividing
* @return the unsigned quotient of the first argument divided by
* the second argument
- *
- * @since 4.0
*/
public static int divideUnsigned(int dividend, int divisor) {
if (divisor >= 0) {
@@ -749,8 +732,6 @@ public final class ArithmeticUtils {
* @param divisor the value doing the dividing
* @return the unsigned quotient of the first argument divided by
* the second argument.
- *
- * @since 4.0
*/
public static long divideUnsigned(long dividend, long divisor) {
if (divisor >= 0L) {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/AbstractFormat.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/AbstractFormat.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/AbstractFormat.java
index b77b522..9701f7f 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/AbstractFormat.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/AbstractFormat.java
@@ -25,7 +25,6 @@ import java.util.Locale;
/**
* Common part shared by both {@link FractionFormat} and {@link BigFractionFormat}.
- * @since 2.0
*/
public abstract class AbstractFormat extends NumberFormat implements Serializable {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFraction.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFraction.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFraction.java
index 9c1a571..4ba8e01 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFraction.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFraction.java
@@ -24,8 +24,6 @@ import org.apache.commons.numbers.core.ArithmeticUtils;
/**
* Representation of a rational number without any overflow. This class is
* immutable.
- *
- * @since 2.0
*/
public class BigFraction
extends Number
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionField.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionField.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionField.java
index 7a12b16..7430eaa 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionField.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionField.java
@@ -26,7 +26,6 @@ import java.io.Serializable;
* This class is a singleton.
* </p>
* @see Fraction
- * @since 2.0
*/
public class BigFractionField implements /*Field<BigFraction>, */Serializable {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionFormat.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionFormat.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionFormat.java
index 8b68d02..aca674c 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionFormat.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/BigFractionFormat.java
@@ -30,8 +30,6 @@ import java.util.Locale;
* The number format for each of the whole number, numerator and,
* denominator can be configured.
* </p>
- *
- * @since 2.0
*/
public class BigFractionFormat extends AbstractFormat implements Serializable {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
index b4ed6b0..c000f2c 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
@@ -24,8 +24,6 @@ import org.apache.commons.numbers.core.ArithmeticUtils;
* Representation of a rational number.
*
* implements Serializable since 2.0
- *
- * @since 1.1
*/
public class Fraction
extends Number
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionConversionException.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionConversionException.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionConversionException.java
index 07db867..9d705aa 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionConversionException.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionConversionException.java
@@ -20,8 +20,6 @@ package org.apache.commons.numbers.fraction;
/**
* Error thrown when a double value cannot be converted to a fraction
* in the allowed number of iterations.
- *
- * @since 1.2
*/
public class FractionConversionException extends FractionException {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionField.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionField.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionField.java
index ad0ab23..58a3d68 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionField.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionField.java
@@ -25,7 +25,6 @@ import java.io.Serializable;
* This class is a singleton.
* </p>
* @see Fraction
- * @since 2.0
*/
public class FractionField implements /*Field<Fraction>, */Serializable {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionFormat.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionFormat.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionFormat.java
index 3cd05af..be63a7b 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionFormat.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/FractionFormat.java
@@ -26,8 +26,6 @@ import java.util.Locale;
* Formats a Fraction number in proper format or improper format. The number
* format for each of the whole number, numerator and, denominator can be
* configured.
- *
- * @since 1.1
*/
public class FractionFormat extends AbstractFormat {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperBigFractionFormat.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperBigFractionFormat.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperBigFractionFormat.java
index cd52420..7460d0e 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperBigFractionFormat.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperBigFractionFormat.java
@@ -28,8 +28,6 @@ import java.text.ParsePosition;
* Minus signs are only allowed in the whole number part - i.e.,
* "-3 1/2" is legitimate and denotes -7/2, but "-3 -1/2" is invalid and
* will result in a <code>ParseException</code>.</p>
- *
- * @since 1.1
*/
public class ProperBigFractionFormat extends BigFractionFormat {
http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fe27e8ec/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperFractionFormat.java
----------------------------------------------------------------------
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperFractionFormat.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperFractionFormat.java
index 24158fa..bc857c9 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperFractionFormat.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/ProperFractionFormat.java
@@ -27,8 +27,6 @@ import java.text.ParsePosition;
* Minus signs are only allowed in the whole number part - i.e.,
* "-3 1/2" is legitimate and denotes -7/2, but "-3 -1/2" is invalid and
* will result in a <code>ParseException</code>.</p>
- *
- * @since 1.1
*/
public class ProperFractionFormat extends FractionFormat {