[bv-dev] ExecutableDescriptor#getReturnValueDescriptor() and void methods
Gunnar Morling
gunnar at hibernate.org
Mon Feb 11 08:17:21 EST 2013
Awesome; I've created https://hibernate.onjira.com/browse/BVAL-385 to keep
track of this.
2013/2/11 Emmanuel Bernard <emmanuel at hibernate.org>
> I agree with everyone here.
>
> On Mon 2013-02-11 13:25, Sebastian Thomschke wrote:
> > +1 for returning a void descriptor. The less null checks we need,
> > the better.
> >
> > seb
> >
> > On 11.02.2013 12:08, Gunnar Morling wrote:
> > >Hi all,
> > >
> > >Currently the method
> > >ExecutableDescriptor#getReturnValueDescriptor() returns null for
> > >methods which have no return value.
> > >
> > >Alternatively we could return a descriptor, which has no
> > >constraints, is not cascaded etc. and has an element class of
> > >void.class. This might allow for a more regular processing without
> > >null checks when working with a collection of executable
> > >descriptors.
> > >
> > >Any thoughts?
> > >
> > >Thanks,
> > >
> > >--Gunnar
> > >
> > >
> > >_______________________________________________
> > >beanvalidation-dev mailing list
> > >beanvalidation-dev at lists.jboss.org
> > >https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
> >
>
> > _______________________________________________
> > beanvalidation-dev mailing list
> > beanvalidation-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20130211/31df8db4/attachment.html
More information about the beanvalidation-dev
mailing list