Created
April 16, 2014 13:58
-
-
Save batmat/10879843 to your computer and use it in GitHub Desktop.
JSR 308 Illustration : Multiple same annotations on the same elements don't require wrapping it from Java 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Legacy style | |
@SomeAnnotations({ | |
@SomeAnnotation(..a..), | |
@SomeAnnotation(..b..), | |
@SomeAnnotation(..c..), | |
}) | |
public class SomeClass { | |
... | |
} | |
// Java 8 style, thanks to JSR 308 | |
// Legacy style | |
@SomeAnnotation(..a..) | |
@SomeAnnotation(..b..) | |
@SomeAnnotation(..c..) | |
public class SomeClass { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment