[ 
https://issues.apache.org/jira/browse/LANG-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989981#comment-13989981
 ] 

Thiago Andrade commented on LANG-1008:
--------------------------------------

[~dmjones500] I think that throwing a NullPointerException still is the correct 
way of verify arguments. Please read this: [Unchecked Exceptions — The 
Controversy|http://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html]
 ??One case where it is common practice to throw a RuntimeException is when the 
user calls a method incorrectly. For example, a method can check if one of its 
arguments is incorrectly null. If an argument is null, the method might throw a 
NullPointerException, which is an unchecked exception.??

> Adding the maxVA and minVA methods to NumberUtils and test methods
> ------------------------------------------------------------------
>
>                 Key: LANG-1008
>                 URL: https://issues.apache.org/jira/browse/LANG-1008
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*, lang.math.*
>            Reporter: Thiago Andrade
>              Labels: github
>             Fix For: Review Patch
>
>
> Placeholder ticket for github PR 23: 
> https://github.com/apache/commons-lang/pull/23



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to