Repository: commons-lang Updated Branches: refs/heads/master d772e171d -> d0049e1ac
Add missing @since tags in the mutable package Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/d0049e1a Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/d0049e1a Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/d0049e1a Branch: refs/heads/master Commit: d0049e1ac38c11d10431b2b9f76d03f3a62ab44b Parents: d772e17 Author: Benedikt Ritter <[email protected]> Authored: Sun Sep 11 16:02:01 2016 +0200 Committer: Benedikt Ritter <[email protected]> Committed: Sun Sep 11 16:02:01 2016 +0200 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/mutable/MutableByte.java | 4 ++++ .../java/org/apache/commons/lang3/mutable/MutableDouble.java | 4 ++++ src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java | 4 ++++ src/main/java/org/apache/commons/lang3/mutable/MutableInt.java | 4 ++++ src/main/java/org/apache/commons/lang3/mutable/MutableLong.java | 4 ++++ src/main/java/org/apache/commons/lang3/mutable/MutableShort.java | 4 ++++ 6 files changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java index efe6dd1..61a175a 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java @@ -227,6 +227,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public byte addAndGet(final byte operand) { this.value += operand; @@ -240,6 +241,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public byte addAndGet(final Number operand) { this.value += operand.byteValue(); @@ -252,6 +254,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public byte getAndAdd(final byte operand) { byte last = value; @@ -266,6 +269,7 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public byte getAndAdd(final Number operand) { byte last = value; http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java index aa089fe..657886e 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java @@ -244,6 +244,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>, * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public double addAndGet(final double operand) { this.value += operand; @@ -257,6 +258,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>, * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public double addAndGet(final Number operand) { this.value += operand.doubleValue(); @@ -269,6 +271,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>, * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public double getAndAdd(final double operand) { double last = value; @@ -283,6 +286,7 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>, * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public double getAndAdd(final Number operand) { double last = value; http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java index 9893c03..00a5000 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java @@ -244,6 +244,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public float addAndGet(final float operand) { this.value += operand; @@ -257,6 +258,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public float addAndGet(final Number operand) { this.value += operand.floatValue(); @@ -269,6 +271,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public float getAndAdd(final float operand) { float last = value; @@ -283,6 +286,7 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public float getAndAdd(final Number operand) { float last = value; http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java index 25bc5b9..a25be7c 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java @@ -227,6 +227,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public int addAndGet(final int operand) { this.value += operand; @@ -240,6 +241,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public int addAndGet(final Number operand) { this.value += operand.intValue(); @@ -252,6 +254,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public int getAndAdd(final int operand) { int last = value; @@ -266,6 +269,7 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public int getAndAdd(final Number operand) { int last = value; http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java index 51d14c7..bbb7b02 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java @@ -227,6 +227,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public long addAndGet(final long operand) { this.value += operand; @@ -240,6 +241,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public long addAndGet(final Number operand) { this.value += operand.longValue(); @@ -252,6 +254,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public long getAndAdd(final long operand) { long last = value; @@ -266,6 +269,7 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public long getAndAdd(final Number operand) { long last = value; http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0049e1a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java index 25cea60..a37949c 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java @@ -227,6 +227,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu * * @param operand the quantity to add, not null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public short addAndGet(final short operand) { this.value += operand; @@ -240,6 +241,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance after adding the operand + * @since 3.5 */ public short addAndGet(final Number operand) { this.value += operand.shortValue(); @@ -252,6 +254,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu * * @param operand the quantity to add, not null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public short getAndAdd(final short operand) { short last = value; @@ -266,6 +269,7 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu * @param operand the quantity to add, not null * @throws NullPointerException if {@code operand} is null * @return the value associated with this instance immediately before the operand was added + * @since 3.5 */ public short getAndAdd(final Number operand) { short last = value;
