Cleanup deprecated symbol usages in testData
This commit is contained in:
Vendored
+1
-1
@@ -6,7 +6,7 @@ annotation class Anno
|
||||
fun box(): String {
|
||||
val a = Anno::class.annotations
|
||||
|
||||
if (a.size() != 1) return "Fail 1: $a"
|
||||
if (a.size != 1) return "Fail 1: $a"
|
||||
val ann = a.single() as? Retention ?: return "Fail 2: ${a.single()}"
|
||||
assertEquals(AnnotationRetention.RUNTIME, ann.value)
|
||||
|
||||
|
||||
+1
-1
@@ -13,6 +13,6 @@ annotation class RuntimeAnno
|
||||
@BinaryAnno
|
||||
@RuntimeAnno
|
||||
fun box(): String {
|
||||
assertEquals(listOf(javaClass<RuntimeAnno>()), ::box.annotations.map { it.annotationType() })
|
||||
assertEquals(listOf(RuntimeAnno::class.java), ::box.annotations.map { it.annotationClass.java })
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@ class C @Primary constructor() {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val ans = C::class.constructors.map { it.annotations.single().annotationType().simpleName }.sorted()
|
||||
val ans = C::class.constructors.map { it.annotations.single().annotationClass.java.simpleName }.sorted()
|
||||
if (ans != listOf("Primary", "Secondary")) return "Fail: $ans"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user