[
https://issues.apache.org/jira/browse/LANG-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved LANG-1663.
-----------------------------------
Fix Version/s: 3.13.0
Resolution: Fixed
[~tobias2019]
Please verify in git master and close if appropriate.
TY!
> Wrong exception in various NumberUtils method documentations
> ------------------------------------------------------------
>
> Key: LANG-1663
> URL: https://issues.apache.org/jira/browse/LANG-1663
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.math.*
> Affects Versions: 3.12.0
> Reporter: Tobias Helms
> Priority: Minor
> Labels: documentation
> Fix For: 3.13.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> The documentation of various methods in _NumberUtils_ says an
> _IllegalArgumentException_ is thrown in case of a _null_ argument , e.g., see
> [https://github.com/apache/commons-lang/blob/197d50434748bfb2db935266cfe740fc01a607ee/src/main/java/org/apache/commons/lang3/math/NumberUtils.java#L1194]
>
> However, these methods throw a _NullPointerException_ in this case. The
> following methods are affected:
> * long min(final long... array)
> * int min(final int... array)
> * short min(final short... array)
> * byte min(final byte... array)
> * static double min(final double... array)
> * float min(final float... array)
> * long max(final long... array)
> * int max(final int... array)
> * short max(final short... array)
> * byte max(final byte... array)
> * double max(final double... array)
> * float max(final float... array)
> * void validateArray(final Object array)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)