diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2019-01-22 04:28:18 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2019-01-22 04:30:02 +0100 |
commit | ccd802503d8aa578be3f1f956d97b06a803de0aa (patch) | |
tree | 53bee7018a6dd79664ee9b711b7ca36146acb8c1 /test/pretty/resource/after | |
parent | ba4e69bf30bf1c761b84e78dbec1fa1e285b02b6 (diff) | |
download | lombok-ccd802503d8aa578be3f1f956d97b06a803de0aa.tar.gz lombok-ccd802503d8aa578be3f1f956d97b06a803de0aa.tar.bz2 lombok-ccd802503d8aa578be3f1f956d97b06a803de0aa.zip |
[fixes #2019] Lombok now properly deals with `@NonNull` specifically on the ‘type use’ of a parameter (and, in case of arrays, on the outermost dimension which is actually the first one listed. Weird corner case of the JLS).
Diffstat (limited to 'test/pretty/resource/after')
-rw-r--r-- | test/pretty/resource/after/TypeAnnotations.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pretty/resource/after/TypeAnnotations.java b/test/pretty/resource/after/TypeAnnotations.java index 760b5ef8..aa93f173 100644 --- a/test/pretty/resource/after/TypeAnnotations.java +++ b/test/pretty/resource/after/TypeAnnotations.java @@ -9,6 +9,12 @@ public class TypeAnnotations { @Target(ElementType.TYPE_USE) @interface Bar { } + @Target(ElementType.TYPE_USE) + @interface Baz { + } + @Target(ElementType.TYPE_USE) + @interface Bat { + } public List<@Foo String> test(@Foo String param) { @Bar String local = "bar"; @@ -19,4 +25,10 @@ public class TypeAnnotations { public <@Foo T extends java.lang.@Foo Number> T test2(@Bar String... varargs) { return null; } + public void test3(String[][] arg, String[]... arg2) { + @Baz + String @Bar [] @Foo [] x; + } + public void test4(@Foo String @Bar [] @Baz [] @Bat ... y) { + } } |