Close GH-32068
Comment From: brucelwl
@quaff Would it be better to initialize validationGroups
in method setMethodValidator(@Nullable MethodValidator methodValidator)
?
example code:
public void setMethodValidator(@Nullable MethodValidator methodValidator) {
this.methodValidator = methodValidator;
this.validationGroups = getValidationGroups();
}
Comment From: jhoeller
@quaff I eventually went with a non-lazy-init approach as suggested by @brucewl, dropping the getValidationGroups()
method completely. Also, applying the same change to the reactive InvocableHandlerMethod
variant as well.