Skip to content

Commit 75a5452

Browse files
PrittSpadeLordmarko-bekhta
authored andcommitted
addressed comments
1 parent 0670fb8 commit 75a5452

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,21 @@
2424
* <p>
2525
* Each constraint annotation must host the following attributes:
2626
* <ul>
27-
* <li>{@link String}<code> message() default [...];</code> which should default to an error message key made of the fully-qualified class name of the constraint followed by <code>.message</code>. For example <code>"{com.acme.constraints.NotSafe.message}"</code></li>
28-
* <li>{@link Class}<code><?>[] groups() default {};</code> for user to customize the targeted groups</li>
29-
* <li>{@link Class}<code>&lt;? extends </code>{@link Payload}<code>&gt;[] payload() default {};</code> for extensibility purposes</li>
27+
* <li>{@code String message() default [...];} which should default to an error
28+
* message key made of the fully-qualified class name of the constraint followed by
29+
* {@code .message}. For example {@code "{com.acme.constraints.NotSafe.message}"}</li>
30+
* <li>{@code Class<?>[] groups() default {};} for user to customize the targeted
31+
* groups</li>
32+
* <li>{@code Class<? extends Payload>[] payload() default {};} for
33+
* extensibility purposes</li>
3034
* </ul>
3135
* <p>
3236
* When building a constraint that is both generic and cross-parameter, the constraint
3337
* annotation must host the {@code validationAppliesTo()} property.
3438
* A constraint is generic if it targets the annotated element and is cross-parameter if
3539
* it targets the array of parameters of a method or constructor.
3640
* <pre>
37-
* {@link ConstraintTarget} validationAppliesTo() default {@link ConstraintTarget#IMPLICIT};
41+
* ConstraintTarget validationAppliesTo() default ConstraintTarget.IMPLICIT;
3842
* </pre>
3943
* This property allows the constraint user to choose whether the constraint
4044
* targets the return type of the executable or its array of parameters.
@@ -63,6 +67,9 @@
6367
* }
6468
* </pre>
6569
*
70+
* @see Payload
71+
* @see ConstraintTarget
72+
*
6673
* @author Emmanuel Bernard
6774
* @author Gavin King
6875
* @author Hardy Ferentschik

0 commit comments

Comments
 (0)