mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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:
committed by
Yan Zhulanow
parent
9127788f4a
commit
18068c699d
@@ -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();
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user