From b948627d919f0ace9c18429b8ada1423885cd403 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Tue, 23 Aug 2011 07:36:08 +0000 Subject: [PATCH] Adding documentation that the Mutable numbers don't work as might be expected with String.format. LANG-698 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160571 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/mutable/MutableBoolean.java | 2 ++ src/main/java/org/apache/commons/lang3/mutable/MutableByte.java | 2 ++ .../java/org/apache/commons/lang3/mutable/MutableDouble.java | 2 ++ .../java/org/apache/commons/lang3/mutable/MutableFloat.java | 2 ++ src/main/java/org/apache/commons/lang3/mutable/MutableInt.java | 2 ++ src/main/java/org/apache/commons/lang3/mutable/MutableLong.java | 2 ++ .../java/org/apache/commons/lang3/mutable/MutableShort.java | 2 ++ 7 files changed, 14 insertions(+) diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java b/src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java index c0d3f5043..15ebba895 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableBoolean.java @@ -21,6 +21,8 @@ import java.io.Serializable; /** * A mutable boolean wrapper. + *

+ * Note that as MutableBoolean does not extend Boolean, it is not treated by String.format as a Boolean parameter. * * @see Boolean * @since 2.2 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 56a646ef1..37064d81e 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableByte.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable byte wrapper. + *

+ * Note that as MutableByte does not extend Byte, it is not treated by String.format as a Byte parameter. * * @see Byte * @since 2.1 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 e222d7129..d0a2124ff 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable double wrapper. + *

+ * Note that as MutableDouble does not extend Double, it is not treated by String.format as a Double parameter. * * @see Double * @since 2.1 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 13f4e1907..4a0512c67 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable float wrapper. + *

+ * Note that as MutableFloat does not extend Float, it is not treated by String.format as a Float parameter. * * @see Float * @since 2.1 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 e8c66bf3d..c8e396755 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableInt.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable int wrapper. + *

+ * Note that as MutableInt does not extend Integer, it is not treated by String.format as an Integer parameter. * * @see Integer * @since 2.1 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 59cf8103a..275450d61 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableLong.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable long wrapper. + *

+ * Note that as MutableLong does not extend Long, it is not treated by String.format as a Long parameter. * * @see Long * @since 2.1 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 7ce78fc9b..315e07d3b 100644 --- a/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java +++ b/src/main/java/org/apache/commons/lang3/mutable/MutableShort.java @@ -18,6 +18,8 @@ package org.apache.commons.lang3.mutable; /** * A mutable short wrapper. + *

+ * Note that as MutableShort does not extend Short, it is not treated by String.format as a Short parameter. * * @see Short * @since 2.1