[bv-dev] ExecutableDescriptor#getReturnValueDescriptor() and void methods

Hardy Ferentschik hardy at hibernate.org
Mon Feb 11 06:16:08 EST 2013


+1 

On 11 Jan 2013, at 12:11 PM, Michael Nascimento <misterm at gmail.com> wrote:

> It makes more sense to return a descriptor.
> 
> Regards, 
> Michael
> 
> On 11 Feb 2013 09:08, "Gunnar Morling" <gunnar at hibernate.org> 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




More information about the beanvalidation-dev mailing list