[bv-dev] Renaming ExecutableDescriptor#areParametersConstrained()?
Matt Benson
mbenson at apache.org
Thu Feb 28 13:06:36 EST 2013
My vote is for #hasConstrainedParameters().
Thanks,
Matt
On Thu, Feb 28, 2013 at 7:59 AM, Rich Midwinter <rich.midwinter at gmail.com>wrote:
> Perhaps worth mentioning we have BeanDescriptor#isBeanConstrained() too in
> 1.0. So at first glance I'd probably suggest isParameterConstrained() and
> also isExecutableConstrained().
>
> Rich
>
>
> On Thursday, 28 February 2013, Gunnar Morling <gunnar at hibernate.org>
> wrote:
> > Hi all,
> > Hardy and I were wondering whether the method
> name ExecutableDescriptor#areParametersConstrained() is the best choice.
> > The name seems a bit unintuitive, when e.g. looking via auto-completion
> for boolean getter methods which typically start with "is" or "has". Maybe
> > * "isParameterConstrained()" (as in "is constrained on at least one
> parameter") or
> > * "hasConstrainedParameters()" would be better alternatives?
> >
> > The latter would also nicely match with
> BeanDescriptor#hasConstrainedExecutables().
> > WDYT?
> > --Gunnar
> >
>
> _______________________________________________
> 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/20130228/c2dc9c36/attachment.html
More information about the beanvalidation-dev
mailing list