From 025a76aa66517c45a033407838750fdb43b3a870 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Mon, 22 Nov 2021 21:43:12 +0100 Subject: [fixes #3040] Support array initializer in onX --- test/transform/resource/after-ecj/OnXJava7Style.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/transform/resource/after-ecj/OnXJava7Style.java') diff --git a/test/transform/resource/after-ecj/OnXJava7Style.java b/test/transform/resource/after-ecj/OnXJava7Style.java index 67f6e686..b38c2c90 100644 --- a/test/transform/resource/after-ecj/OnXJava7Style.java +++ b/test/transform/resource/after-ecj/OnXJava7Style.java @@ -5,11 +5,18 @@ public class OnXJava7Style { @interface Bar { String stuff() default ""; } + @interface Array { + String[] value() default {}; + } @lombok.Getter() String a; @lombok.Setter() String b; @lombok.Setter() String c; @lombok.Setter() String d; @lombok.Getter() String e; + @lombok.Getter() String f; + @lombok.Getter() String g; + @lombok.Getter() String h; + @lombok.Getter() String i; public OnXJava7Style() { super(); } @@ -28,4 +35,16 @@ public class OnXJava7Style { public @Foo(value = "c") @Bar(stuff = "d") @java.lang.SuppressWarnings("all") String getE() { return this.e; } + public @Array @java.lang.SuppressWarnings("all") String getF() { + return this.f; + } + public @Array() @java.lang.SuppressWarnings("all") String getG() { + return this.g; + } + public @Array({}) @java.lang.SuppressWarnings("all") String getH() { + return this.h; + } + public @Array({"a", "b"}) @java.lang.SuppressWarnings("all") String getI() { + return this.i; + } } -- cgit