Kapt: Represent a single element as an array if the annotation method type is array type

(cherry picked from commit 19ce4cb)
This commit is contained in:
Yan Zhulanow
2016-08-30 16:18:52 +03:00
committed by Yan Zhulanow
parent 9127788f4a
commit 18068c699d
5 changed files with 42 additions and 12 deletions

View File

@@ -1,7 +1,19 @@
// Simple
@interface Anno {
String[] numbers();
}
@interface AnnoValue {
String[] value();
}
@KotlinAnnotation(a = "A", b = 5)
@Anno(numbers = { "five", "six" })
@AnnoValue({ "five", "six" })
public abstract class Simple {
@Anno(numbers = "seven")
@AnnoValue("seven")
final String field = "A";
abstract void voidMethod();

View File

@@ -1,9 +1,13 @@
@KotlinAnnotation(a = "A", b = 5)
@Anno(numbers = { "five", "six" })
@AnnoValue(value = { "five", "six" })
public abstract class Simple {
static {}
{}
@Anno(numbers = { "seven" })
@AnnoValue(value = { "seven" })
final java.lang.String field
abstract void voidMethod()