bval-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Vara <bashfl...@gmail.com>
Subject Re: Thoughts on @Nullable?
Date Sun, 09 Dec 2012 15:19:03 GMT
Hi Matthew,

Unless I'm missing something, I think @Nullable would just be a no-op for
validation purposes. My view on the issue would be to instead allow JSR-303
validators to perform runtime validation of JSR-305/Findbugs annotations,
where @Nullable is already available.



On Tue, Dec 4, 2012 at 11:23 AM, Matthew Adams <matthew@matthewadams.me>wrote:

> Hi all,
>
> *NB:  Cross posting from the Hibernate Validator forum, since this is
> spec-related, not implementation related.  HV forum post is at
> https://forum.hibernate.org/viewtopic.php?f=9&t=1024895.*
>
> I just entered https://hibernate.onjira.com/browse/BVAL-341 (the JSR-303
> issue tracker, I think) since I was curious as to what other folks thought
> about adding a @Nullable annotation to javax.validation.constraints to
> communicate explicitly that null or non-null values are allowed. Along with
> @NotNull & @Null, it basically completes the three possible answers to the
> nullability question, "can't be null", "must be null", & "may be null".
>
> Thoughts? Upvotes? :)
>
> -matthew
>
>
> --
> mailto:matthew@matthewadams.me <matthew@matthewadams.me>
> skype:matthewadams12
> googletalk:matthew@matthewadams.me
> http://matthewadams.me
> http://www.linkedin.com/in/matthewadams
>
>

Mime
View raw message