aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/OnXJava8StyleOn7.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-11-22 21:43:12 +0100
committerRoel Spilker <r.spilker@gmail.com>2021-12-12 02:29:45 +0100
commit025a76aa66517c45a033407838750fdb43b3a870 (patch)
tree41dd38ec0dd8b2792d8b6720cccd83c3850fad9e /test/transform/resource/before/OnXJava8StyleOn7.java
parent5155060ddf48b683a902b9d354d0fd07df7a79a1 (diff)
downloadlombok-025a76aa66517c45a033407838750fdb43b3a870.tar.gz
lombok-025a76aa66517c45a033407838750fdb43b3a870.tar.bz2
lombok-025a76aa66517c45a033407838750fdb43b3a870.zip
[fixes #3040] Support array initializer in onX
Diffstat (limited to 'test/transform/resource/before/OnXJava8StyleOn7.java')
-rw-r--r--test/transform/resource/before/OnXJava8StyleOn7.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/transform/resource/before/OnXJava8StyleOn7.java b/test/transform/resource/before/OnXJava8StyleOn7.java
index 98f76451..a702601c 100644
--- a/test/transform/resource/before/OnXJava8StyleOn7.java
+++ b/test/transform/resource/before/OnXJava8StyleOn7.java
@@ -10,9 +10,17 @@ public class OnXJava8StyleOn7 {
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;
}