Skip to content

Commit

Permalink
improve javadoc of @byte* more kindly #761
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshikawaa committed Oct 15, 2017
1 parent 3873d99 commit b7b43c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
* The annotated element must be a {@link CharSequence}({@link String}, {@link StringBuilder}, etc ...) whose byte length must
* be lower or equal to the specified maximum.
* <p>
* If you want to specify not only a maximum length but also a minimum length, it is recommended to use {@link ByteSize}.
* </p>
* <p>
* Supported types are:
* </p>
* <ul>
Expand All @@ -50,6 +53,7 @@
* </p>
* @since 5.1.0
* @see ByteMaxValidator
* @see ByteSize
*/
@Documented
@Constraint(validatedBy = { ByteMaxValidator.class })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
* The annotated element must be a {@link CharSequence}({@link String}, {@link StringBuilder}, etc ...) whose byte length must
* be higher or equal to the specified minimum.
* <p>
* If you want to specify not only a minimum length but also a maximum length, it is recommended to use {@link ByteSize}.
* </p>
* <p>
* Supported types are:
* </p>
* <ul>
Expand All @@ -50,6 +53,7 @@
* </p>
* @since 5.1.0
* @see ByteMinValidator
* @see ByteSize
*/
@Documented
@Constraint(validatedBy = { ByteMinValidator.class })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
* </p>
* @since 5.4.0
* @see ByteSizeValidator
* @see ByteMin
* @see ByteMax
*/
@Documented
@Constraint(validatedBy = { ByteSizeValidator.class })
Expand Down Expand Up @@ -98,7 +100,7 @@
/**
* Defines several {@link ByteSize} annotations on the same element.
* @see ByteSize
* @since 5.1.0
* @since 5.4.0
*/
@Documented
@Target({ METHOD, FIELD, TYPE, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
Expand Down

0 comments on commit b7b43c4

Please sign in to comment.