Do not use deprecated kotlin.reflect API

This commit is contained in:
Alexander Udalov
2017-08-18 14:25:07 +03:00
parent 593d6b7a95
commit 60c735f2fd
45 changed files with 52 additions and 27 deletions
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.test.assertEquals
var foo = ""
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.test.assertEquals
class C(var state: String) {
@@ -3,7 +3,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.test.*
open class Super {
@@ -3,7 +3,8 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.KProperty1
import kotlin.reflect.full.*
import kotlin.reflect.jvm.*
class K(private val value: String)
@@ -14,6 +14,7 @@ public class J {
// FILE: K.kt
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.test.assertEquals
open class K : J() {
@@ -3,7 +3,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.test.*
open class Super(val r: String)
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
class A<T> {
val result = "OK"
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
var storage = "before"
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
class A(val readonly: String) {
var mutable: String = "before"
@@ -3,7 +3,7 @@
// WITH_REFLECT
import kotlin.reflect.declaredMemberProperties
import kotlin.reflect.full.declaredMemberProperties
class A(val foo: String)
@@ -10,6 +10,7 @@ public class J extends K {
// FILE: K.kt
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.reflect.jvm.*
public open class K {
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
class A {
val foo: String = "member"
@@ -3,7 +3,8 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.KProperty1
import kotlin.reflect.full.*
import kotlin.reflect.jvm.isAccessible
class Result {
@@ -3,7 +3,8 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.KMutableProperty1
import kotlin.reflect.full.*
import kotlin.reflect.jvm.isAccessible
class A {
@@ -3,7 +3,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
open class A(private val p: Int)
class B : A(42)
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.reflect.jvm.*
import kotlin.test.*
@@ -4,6 +4,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
import kotlin.reflect.jvm.*
class K<in T : String> {
@@ -3,7 +3,8 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.KMutableProperty1
import kotlin.reflect.full.*
import kotlin.reflect.jvm.isAccessible
class A(param: String) {
@@ -3,7 +3,7 @@
// WITH_REFLECT
import kotlin.reflect.*
import kotlin.reflect.full.*
class A(param: String) {
val int: Int get() = 42