We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615934b commit 1172a02Copy full SHA for 1172a02
engine/src/main/java/org/hibernate/validator/internal/engine/ValidatorFactoryImpl.java
@@ -891,12 +891,7 @@ public Builder setTraversableResolverResultCacheEnabled(boolean traversableResol
891
}
892
893
public Builder setConstraintValidatorPayload(Object constraintValidatorPayload) {
894
- if ( constraintValidatorPayload == null ) {
895
- this.constraintValidatorPayload = defaultContext.constraintValidatorPayload;
896
- }
897
- else {
898
- this.constraintValidatorPayload = constraintValidatorPayload;
899
+ this.constraintValidatorPayload = constraintValidatorPayload;
900
return this;
901
902
0 commit comments