Skip to content

Commit a064ec8

Browse files
committed
[LANG-1768] MutableLong and friends should provide better parsing
exceptions Javadocs
1 parent 05877f1 commit a064ec8

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

src/changes/changes.xml

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The <action> type attribute can be add,update,fix,remove.
8383
<action type="fix" dev="ggregory" due-to="Gary Gregory">Instead of throwing a NullPointerException, ArrayUtils.toStringArray(Object[]) should return "null" for null elements like ArrayUtils.toStringArray(Object[], String) returns its valueForNullElements.</action>
8484
<action issue="LANG-1764" type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate NumericEntityUnescaper.OPTION in favor of Apache Commons Text.</action>
8585
<action type="fix" dev="ggregory" due-to="Gary Gregory">Several hash collisions in Fraction class.</action>
86+
<action issue="LANG-1768" type="fix" dev="ggregory" due-to="Wang Hailong, Gary Gregory">MutableLong and friends should provide better parsing exceptions Javadocs.</action>
8687
<!-- ADD -->
8788
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Strings and refactor StringUtils.</action>
8889
<action issue="LANG-1747" type="add" dev="ggregory" due-to="Oliver B. Fischer, Gary Gregory">Add StopWatch.run([Failable]Runnable) and get([Failable]Supplier).</action>

src/main/java/org/apache/commons/lang3/mutable/MutableByte.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MutableByte(final Number value) {
6868
* Constructs a new MutableByte parsing the given string.
6969
*
7070
* @param value the string to parse, not null
71-
* @throws NumberFormatException if the string cannot be parsed into a byte
71+
* @throws NumberFormatException if the string cannot be parsed into a byte, see {@link Byte#parseByte(String)}.
7272
* @since 2.5
7373
*/
7474
public MutableByte(final String value) {

src/main/java/org/apache/commons/lang3/mutable/MutableDouble.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public MutableDouble(final Number value) {
6666
* Constructs a new MutableDouble parsing the given string.
6767
*
6868
* @param value the string to parse, not null
69-
* @throws NumberFormatException if the string cannot be parsed into a double
69+
* @throws NumberFormatException if the string cannot be parsed into a double, see {@link Double#parseDouble(String)}.
7070
* @since 2.5
7171
*/
7272
public MutableDouble(final String value) {

src/main/java/org/apache/commons/lang3/mutable/MutableFloat.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public MutableFloat(final Number value) {
6666
* Constructs a new MutableFloat parsing the given string.
6767
*
6868
* @param value the string to parse, not null
69-
* @throws NumberFormatException if the string cannot be parsed into a float
69+
* @throws NumberFormatException if the string cannot be parsed into a float, see {@link Float#parseFloat(String)}.
7070
* @since 2.5
7171
*/
7272
public MutableFloat(final String value) {

src/main/java/org/apache/commons/lang3/mutable/MutableInt.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MutableInt(final Number value) {
6868
* Constructs a new MutableInt parsing the given string.
6969
*
7070
* @param value the string to parse, not null
71-
* @throws NumberFormatException if the string cannot be parsed into an int
71+
* @throws NumberFormatException if the string cannot be parsed into an int, see {@link Integer#parseInt(String)}.
7272
* @since 2.5
7373
*/
7474
public MutableInt(final String value) {

src/main/java/org/apache/commons/lang3/mutable/MutableLong.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MutableLong(final Number value) {
6868
* Constructs a new MutableLong parsing the given string.
6969
*
7070
* @param value the string to parse, not null
71-
* @throws NumberFormatException if the string cannot be parsed into a long
71+
* @throws NumberFormatException if the string cannot be parsed into a long, see {@link Long#parseLong(String)}.
7272
* @since 2.5
7373
*/
7474
public MutableLong(final String value) {

src/main/java/org/apache/commons/lang3/mutable/MutableShort.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MutableShort(final short value) {
6868
* Constructs a new MutableShort parsing the given string.
6969
*
7070
* @param value the string to parse, not null
71-
* @throws NumberFormatException if the string cannot be parsed into a short
71+
* @throws NumberFormatException if the string cannot be parsed into a short, see {@link Short#parseShort(String)}.
7272
* @since 2.5
7373
*/
7474
public MutableShort(final String value) {

0 commit comments

Comments
 (0)