[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

@@ -6,11 +6,18 @@ public class OnXJava7Style {
@interface Bar {
String stuff() default "";
}
@interface Array {
String[] value() default {};
}
String a;
String b;
String c;
String d;
String e;
String f;
String g;
String h;
String i;
@Foo
@java.lang.SuppressWarnings("all")
public String getA() {
@@ -35,4 +42,27 @@ public class OnXJava7Style {
public String getE() {
return this.e;
}
@Array
@java.lang.SuppressWarnings("all")
public String getF() {
return this.f;
}
@Array
@java.lang.SuppressWarnings("all")
public String getG() {
return this.g;
}
@Array({})
@java.lang.SuppressWarnings("all")
public String getH() {
return this.h;
}
@Array({"a", "b"})
@java.lang.SuppressWarnings("all")
public String getI() {
return this.i;
}
}