[bv-dev] Making ConstraintValidator#initialize() a default method

Gunnar Morling gunnar at hibernate.org
Mon Jan 16 06:43:37 EST 2017


Hi,

Someone suggested, now that we require Java 8, to make
ConstraintValidator#initialize() a (no-op) default method [1].

This will save implementors of constraints without any attributes from
providing their own empty implementation.

I think it's a compelling idea; does anyone see a reason speaking against it?

Thanks,

--Gunnar

[1] https://hibernate.atlassian.net/projects/BVAL/issues/BVAL-555


More information about the beanvalidation-dev mailing list