Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations should be consistent with JSR-305 #10

Open
GoogleCodeExporter opened this issue Oct 9, 2015 · 0 comments
Open

Annotations should be consistent with JSR-305 #10

GoogleCodeExporter opened this issue Oct 9, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

> What steps will reproduce the problem?
1. Try to utilise JSR 303 and JSR-305 at the same time.

> What is the expected output? 
One annotation for a given meaning.

> What do you see instead?
Two or more annotations for the same thing.  Without a single standard
existing uses are likely pick one or the other.

e.g. void method(@javax.annotations.Notnull @java.validation.NotNull
@org.jetbrains.annotations.NotNull String text);

JSR-305 also defines/suggests a Contraint validation.
e.g. Pattern(regex=, flags=) 

Original issue reported on code.google.com by [email protected] on 28 Jan 2009 at 10:44

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

No branches or pull requests

1 participant