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(