From d910918faf359f8144d4195ead470fd0921554dc Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Mon, 5 May 2014 17:48:48 +0000 Subject: [PATCH] LANG-1007: Fixing NumberUtils JAVADoc comments for max methods. This also fixes pull request #22 from github. Thanks to Thiago Andrade. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592587 13f79535-47bb-0310-9956-ffa450edef68 --- src/changes/changes.xml | 1 + .../org/apache/commons/lang3/math/NumberUtils.java | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 9fc907c93..6e1e8cba6 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@ + Fixing NumberUtils JAVADoc comments for max methods Better Javadoc for BitField class DurationFormatUtils#formatDurationHMS implementation does not correspond to Javadoc and vice versa DurationFormatUtils are not able to handle negative durations/periods diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java index 7db1f4e1e..18ad1f646 100644 --- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java +++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java @@ -929,7 +929,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty */ @@ -952,7 +952,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty */ @@ -975,7 +975,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty */ @@ -998,7 +998,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty */ @@ -1021,7 +1021,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty * @see IEEE754rUtils#max(double[]) IEEE754rUtils for a version of this method that handles NaN differently @@ -1048,7 +1048,7 @@ public class NumberUtils { *

Returns the maximum value in an array.

* * @param array an array, must not be null or empty - * @return the minimum value in the array + * @return the maximum value in the array * @throws IllegalArgumentException if array is null * @throws IllegalArgumentException if array is empty * @see IEEE754rUtils#max(float[]) IEEE754rUtils for a version of this method that handles NaN differently