Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
We currently perform checks like:
Validate.isTrue(foo != null, ...)
Which should be IMO:
Validate.notNull(foo, ...);
The difference being that the former throws IAE and the later NPE.
As with [collections], my argument is the same, the JRE uses Objects.requireNonNull() to throw an NPE, so I'd like to keep normalizing on that.