Skip to content

Commit 484e07f

Browse files
committed
Better JavaDoc for @NotBlank constraint #max() feature
Signed-off-by: Mechite <contact@mechite.com>
1 parent 9fa26a0 commit 484e07f

File tree

1 file changed

+4
-1
lines changed
  • validator-constraints/src/main/java/io/avaje/validation/constraints

1 file changed

+4
-1
lines changed

validator-constraints/src/main/java/io/avaje/validation/constraints/NotBlank.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
@Retention(RUNTIME)
2525
public @interface NotBlank {
2626

27-
/** Set the maximum length. By default this is 0 meaning unlimited. */
27+
/**
28+
* Set the maximum length. By default, this is 0 (meaning unlimited).
29+
* This mimics the functionality of {@link Size} & {@link Length}, for a verbosity reduction.
30+
*/
2831
int max() default 0;
2932

3033
String message() default "{avaje.NotBlank.message}";

0 commit comments

Comments
 (0)