Add annotations, so you don't have to use the ugly @Rule syntax thing by x7airworker · Pull Request #5 · JavaWebStack/validator

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@x7airworker

Copy link

Member

@Rule("int(2, 3)")
int x;
// will now be
@IntegerRule(min = 2, max = 3)
int x;

I've wrote a little test and confirmed that the current state won't break.
image

@JanHolger JanHolger merged commit e96fe03 into dev

Dec 5, 2021

@x7airworker x7airworker deleted the feature/annotations branch

December 5, 2021 17:08

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

Reviewers

@JanHolger JanHolger JanHolger approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@x7airworker @JanHolger