nonNull and similar methods [was Re: First round of java.util.Objects for code review (bug 6797535)]
Joseph D. Darcy
Joe.Darcy at Sun.COM
Wed Oct 14 12:24:00 PDT 2009
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:
> Fully agree with you both, Stephan and Paul. A Validation class with a
> broad perspective makes much more sense to me.
If such a validation class is added to the platform, the nonNull methods
can be moved there. Until then, they can live in Objects.
More information about the core-libs-dev