These errors look pretty fine as is to me.
The concepts of "empty" and "blank" (from StringUtils) both include
the concept of null, so I would expect to see errors referring to
empty/blank, and not null. The other cases are mostly to taste.
The "MSG" cases are correct too. Any message you supply
Please anyone could confirm if the actual results are intended or not,
thanks!
On Wed, Apr 13, 2011 at 2:21 AM, Hoat Le wrote:
> Hello,
>
> I have some concerns regarding of *Validate* class with the case of null
> pointer exceptions. I see that there are some misleading messages, for
> example:
Hello,
I have some concerns regarding of *Validate* class with the case of null
pointer exceptions. I see that there are some misleading messages, for
example:
Validate.notEmpty((Object[]) null); => throws
"java.lang.NullPointerException" with the message "The validated array is
empty". I don't t