[fixes #3040] Support array initializer in onX

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2021-12-12 02:29:45 +01:00
1 parent 5155060ddf
commit 025a76aa66
12 files changed
+176 -4

No files matched your search

@@ -8,9 +8,17 @@ public class OnXJava7Style {
String stuff() default "";
}
@interface Array {
String[] value() default {};
}
@lombok.Getter(onMethod=@__(@Foo)) String a;
@lombok.Setter(onMethod=@__(@Foo())) String b;
@lombok.Setter(onParam=@__(@Foo("a"))) String c;
@lombok.Setter(onParam=@__(@Bar(stuff="b"))) String d;
@lombok.Getter(onMethod=@__({@Foo(value="c"), @Bar(stuff="d")})) String e;
@lombok.Getter(onMethod=@__(@Array)) String f;
@lombok.Getter(onMethod=@__(@Array())) String g;
@lombok.Getter(onMethod=@__(@Array({}))) String h;
@lombok.Getter(onMethod=@__(@Array({"a", "b"}))) String i;
}