[bv-dev] BVAL-192 'exclusive' flag for @DecimalMin/@DecimalMax

Hardy Ferentschik hardy at hibernate.org
Tue Dec 11 18:46:40 EST 2012


>>> @DecimalMax(value = "0.0", exclusive = true)
>> 
>> Can we name it "inclusive" rather than "exclusive"? Personally I prefer
>> positive variable/method names as I think they read better, in particular
>> when it comes to negation.
> 
> I think inclusive also has a clearer meaning, it took me three reads
> through to work out what the purpose was. I wondered if Hardy picked
> exclusive for a sensible default value, but gave up trying to get my
> head around it (newborn baby is my excuse).

Well, I just used 'exclude', because it was used in the jira ticket. Now that I think about it 'inclusive' is much better. 
Maybe I can play the newborn card as well?  Does it still count after 4 months? I definitely still feel tired.

Welcome to the club.

--Hardy


More information about the beanvalidation-dev mailing list