Get rid of deprecated annotations in testData
This commit is contained in:
Vendored
+2
-2
@@ -1,13 +1,13 @@
|
||||
import kotlin.reflect.*
|
||||
import kotlin.reflect.jvm.*
|
||||
import kotlin.platform.platformStatic as static
|
||||
import kotlin.jvm.JvmStatic as static
|
||||
|
||||
class A {
|
||||
private var foo: String = ""
|
||||
}
|
||||
|
||||
object O {
|
||||
private static var bar: String = ""
|
||||
private @static var bar: String = ""
|
||||
}
|
||||
|
||||
class CounterTest<T>(t: T) {
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
import kotlin.platform.platformStatic as static
|
||||
import kotlin.jvm.JvmStatic as static
|
||||
import kotlin.reflect.jvm.isAccessible
|
||||
import kotlin.reflect.KCallable
|
||||
|
||||
@@ -9,9 +9,9 @@ class A(private var bar: String = "") {
|
||||
}
|
||||
|
||||
object O {
|
||||
private static var baz: String = ""
|
||||
private @static var baz: String = ""
|
||||
|
||||
static fun getBaz() = O::baz.apply { isAccessible = true }
|
||||
@static fun getBaz() = O::baz.apply { isAccessible = true }
|
||||
}
|
||||
|
||||
fun check(callable: KCallable<*>, vararg args: Any?) {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import kotlin.platform.platformStatic as static
|
||||
import kotlin.jvm.JvmStatic as static
|
||||
|
||||
object Obj {
|
||||
static fun foo() {}
|
||||
@static fun foo() {}
|
||||
}
|
||||
|
||||
class C {
|
||||
companion object {
|
||||
static fun bar() {}
|
||||
@static fun bar() {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+4
-4
@@ -1,9 +1,9 @@
|
||||
import kotlin.platform.platformStatic as static
|
||||
import kotlin.jvm.JvmStatic as static
|
||||
|
||||
object Obj {
|
||||
static fun foo(s: String) {}
|
||||
static fun bar() {}
|
||||
static fun sly(obj: Obj) {}
|
||||
@static fun foo(s: String) {}
|
||||
@static fun bar() {}
|
||||
@static fun sly(obj: Obj) {}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -7,7 +7,7 @@ class A {
|
||||
}
|
||||
|
||||
object O {
|
||||
kotlin.platform.platformStatic fun baz() {}
|
||||
@kotlin.platform.platformStatic fun baz() {}
|
||||
}
|
||||
|
||||
fun nullableUnit(unit: Boolean): Unit? = if (unit) Unit else null
|
||||
|
||||
Reference in New Issue
Block a user