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 static float min(final float[] array) { *

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 static long max(final long[] array) { *

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 static int max(final int[] array) { *

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 static short max(final short[] array) { *

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 static byte max(final byte[] array) { *

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 static double max(final double[] array) { *

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