Add quick fixes for RESTRICTED_RETENTION_FOR_EXPRESSION_ANNOTATION (KT-25574)
This commit is contained in:
committed by
Nikolay Krasko
parent
fb0261bfc1
commit
58b6360388
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
<caret>@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
<caret>@Retention
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
<caret>@Retention()
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
class AnnotationRetention
|
||||
|
||||
<caret>@Retention()
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import kotlin.annotation.AnnotationRetention
|
||||
|
||||
// "Change existent retention to SOURCE" "true"
|
||||
class AnnotationRetention
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Change existent retention to SOURCE" "false"
|
||||
// DISABLE-ERRORS
|
||||
// ACTION: Add SOURCE retention
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Remove EXPRESSION target
|
||||
<caret>@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class Ann
|
||||
Reference in New Issue
Block a user