Replace with: do not remove annotation use-site targets
This commit is contained in:
committed by
Dmitry Gridin
parent
f573719cc1
commit
06bd620dd6
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:<caret>UseExperimental
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:<caret>OptIn()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:<caret>UseExperimental()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:OptIn()
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:<caret>UseExperimental(Foo::class, Bar::class)
|
||||
|
||||
annotation class Foo
|
||||
annotation class Bar
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with 'OptIn(*markerClass)'" "true"
|
||||
// WITH_RUNTIME
|
||||
@file:OptIn(Foo::class, Bar::class)
|
||||
|
||||
annotation class Foo
|
||||
annotation class Bar
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar'" "true"
|
||||
class Test {
|
||||
@get:<caret>Foo
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar'" "true"
|
||||
class Test {
|
||||
@get:Bar
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar()'" "true"
|
||||
class Test {
|
||||
@get:<caret>Foo
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar()"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar()'" "true"
|
||||
class Test {
|
||||
@get:Bar()
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar()"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar(i)'" "true"
|
||||
class Test {
|
||||
@get:<caret>Foo(1)
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar(i)"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo(val i: Int)
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar(val i: Int)
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'Bar(i)'" "true"
|
||||
class Test {
|
||||
@get:Bar(1)
|
||||
val s: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("Replace with Bar", ReplaceWith("Bar(i)"))
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Foo(val i: Int)
|
||||
|
||||
@Target(AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Bar(val i: Int)
|
||||
Reference in New Issue
Block a user