Jesús Viñuales wrote:
I agree with Stephen. There are a slew of validation methods that
would be beneficial, and if you really want to drive the JDK towards
standard validation, refactor them out into a Validation class. Look
at what Spring has written for themselves:
http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/ut
il/Assert.html
Paul
Fully agree with you both, Stephan and Paul. A Validation class with a
broad perspective makes much more sense to me.
--Jesus
If such a validation class is added to the platform, the nonNull methods
can be moved there. Until then, they can live in Objects.
-Joe