wenwenlin / jsr-305

Automatically exported from code.google.com/p/jsr-305
0 stars 0 forks source link

Annotations should be consistent with JSR-305 #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
> 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 peter.la...@gmail.com on 28 Jan 2009 at 10:44