Skip to content

Commit 5312ce7

Browse files
committed
[#257] Set the default validatedBy on the Constraint annotation
as part of: Support ConstraintValidator declaration via service loader [BVAL-645] since there are different ways a constraint validator can be registered, there is no need to require an array of validators on constraint annotation...
1 parent b38ebd5 commit 5312ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/jakarta/validation/Constraint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
*
8888
* @return array of {@code ConstraintValidator} classes implementing the constraint
8989
*/
90-
Class<? extends ConstraintValidator<?, ?>>[] validatedBy();
90+
Class<? extends ConstraintValidator<?, ?>>[] validatedBy() default {};
9191
}

0 commit comments

Comments
 (0)