"Code Cleanup" action to migrate all instances of deprecated syntax to new one
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
trait Foo {
|
||||
}
|
||||
|
||||
|
||||
[deprecated("boo")] fun bar() {}
|
||||
|
||||
enum class E {
|
||||
First Second
|
||||
}
|
||||
|
||||
enum class F(val name: String) {
|
||||
First: F("First")
|
||||
Second: F("Second")
|
||||
}
|
||||
|
||||
val f = { (a: Int, b: Int) -> a + b }
|
||||
|
||||
annotation class Ann(val arg1: Class<*>, val arg2: Class<out Any?>)
|
||||
|
||||
Ann(javaClass<String>(), javaClass<Int>()) class MyClass
|
||||
@@ -0,0 +1,22 @@
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
interface Foo {
|
||||
}
|
||||
|
||||
|
||||
@deprecated("boo") fun bar() {}
|
||||
|
||||
enum class E {
|
||||
First, Second
|
||||
}
|
||||
|
||||
enum class F(val name: String) {
|
||||
First("First"),
|
||||
Second("Second")
|
||||
}
|
||||
|
||||
val f = { a: Int, b: Int -> a + b }
|
||||
|
||||
annotation class Ann(val arg1: KClass<*>, val arg2: KClass<out Any?>)
|
||||
|
||||
Ann(String::class, Int::class) class MyClass
|
||||
Reference in New Issue
Block a user