Cleanup deprecated symbol usages in testData
This commit is contained in:
+4
-4
@@ -17,11 +17,11 @@ class Delegate {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val e = javaClass<MyClass>()
|
||||
val e = MyClass::class.java
|
||||
|
||||
val e1 = e.getDeclaredMethod("setX", javaClass<String>()).getAnnotations()
|
||||
if (e1.size() != 1) return "Fail E1 size: ${e1.toList()}"
|
||||
if (e1[0].annotationType() != javaClass<First>()) return "Fail: ${e1.toList()}"
|
||||
val e1 = e.getDeclaredMethod("setX", String::class.java).getAnnotations()
|
||||
if (e1.size != 1) return "Fail E1 size: ${e1.toList()}"
|
||||
if (e1[0].annotationClass.java != First::class.java) return "Fail: ${e1.toList()}"
|
||||
|
||||
return MyClass().x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user