Skip to content

Commit c6d6211

Browse files
authored
[Fix Javadoc] Both IEEE754rUtils.max(final float...) and IEEE754rUtils.max(final double...) methods Javadocs state incorrect return value (#1508)
1 parent 4e50f75 commit c6d6211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/commons/lang3/math/IEEE754rUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class IEEE754rUtils {
3333
* Returns the maximum value in an array.
3434
*
3535
* @param array an array, must not be null or empty.
36-
* @return the minimum value in the array.
36+
* @return the maximum value in the array.
3737
* @throws NullPointerException if {@code array} is {@code null}.
3838
* @throws IllegalArgumentException if {@code array} is empty.
3939
* @since 3.4 Changed signature from max(double[]) to max(double...)
@@ -88,7 +88,7 @@ public static double max(final double a, final double b, final double c) {
8888
* Returns the maximum value in an array.
8989
*
9090
* @param array an array, must not be null or empty.
91-
* @return the minimum value in the array.
91+
* @return the maximum value in the array.
9292
* @throws NullPointerException if {@code array} is {@code null}.
9393
* @throws IllegalArgumentException if {@code array} is empty.
9494
* @since 3.4 Changed signature from max(float[]) to max(float...)

0 commit comments

Comments
 (0)