Skip to content

BVAL-672 Add @PastOrPresent and @FutureOrPresent#121

Merged
gunnarmorling merged 2 commits intojakartaee:masterfrom
gsmet:orpresent
Jun 21, 2017
Merged

BVAL-672 Add @PastOrPresent and @FutureOrPresent#121
gunnarmorling merged 2 commits intojakartaee:masterfrom
gsmet:orpresent

Conversation

@gsmet
Copy link
Copy Markdown
Contributor

@gsmet gsmet commented Jun 21, 2017

* the constraint is on a {@link Year}, present would mean the whole current year.
*
* @return {@code true} if the present date should be considered valid
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, we didn't even have the @since tag; it had to be wrong ;)

/**
* The annotated element must be an instant, date or time in the present or in the future.
* <p>
* <i>Now</i> is defined by the {@link ClockProvider} attached to the {@link javax.validation.Validator}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer simple names (via imports) as opposed to FQNs in JavaDoc. Can be done as a follow-up, though.

@gunnarmorling gunnarmorling merged commit a7030ad into jakartaee:master Jun 21, 2017
@gunnarmorling
Copy link
Copy Markdown
Contributor

Merged; thanks, @gsmet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants