[bv-dev] Renaming ExecutableDescriptor#areParametersConstrained()?

Gunnar Morling gunnar at hibernate.org
Thu Feb 28 10:40:57 EST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20130228/1eb6597b/attachment.html 


More information about the beanvalidation-dev mailing list