From 3d12f60eaef20c92683581eba722073a97d571a3 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Mon, 21 Sep 2020 23:28:24 +0300 Subject: [PATCH] Add class description Signed-off-by: Pekka Helenius --- .../java/com/fjordtek/bookstore/annotation/CurrentYear.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java b/bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java index 57f8791..ddbd9e2 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java @@ -11,6 +11,11 @@ import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; +/** + * The annotated element must be a year number equal or less than the current year. + * + * @author Pekka Helenius + */ @Documented @Constraint(validatedBy = CurrentYearValidator.class) @Target(