mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 16:16:53 +00:00
[fixes #3040] Support array initializer in onX
This commit is contained in:
1 parent
5155060ddf
commit
025a76aa66
12 files changed
+176
-4
No files matched your search
@@ -8,9 +8,17 @@ public class OnXJava8Style {
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user