KT-11576 Unused symbol warning: add quickfix for annotated declarations
#KT-11576 Fixed
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Suppress for declarations annotated by 'kotlin.Deprecated'" "false"
|
||||
// ACTION: Safe delete 'foo'
|
||||
// ACTION: Create test
|
||||
@Deprecated("")
|
||||
fun foo<caret>(){}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Suppress for declarations annotated by 'java.lang.SuppressWarnings'" "false"
|
||||
// ACTION: Safe delete 'Unused'
|
||||
// ACTION: Create test
|
||||
@java.lang.SuppressWarnings("")
|
||||
class <caret>Unused
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Suppress for declarations annotated by 'org.jetbrains.annotations.NonNls'" "false"
|
||||
// ACTION: Safe delete 'foo'
|
||||
// ACTION: Create test
|
||||
import org.jetbrains.annotations.NonNls
|
||||
|
||||
@NonNls
|
||||
fun <caret>foo() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Suppress for declarations annotated by 'xxx.XXX'" "true"
|
||||
package xxx
|
||||
|
||||
annotation class XXX
|
||||
|
||||
@XXX
|
||||
class <caret>UnusedClass
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Suppress for declarations annotated by 'xxx.XXX'" "true"
|
||||
package xxx
|
||||
|
||||
annotation class XXX
|
||||
|
||||
@XXX
|
||||
class <caret>UnusedClass
|
||||
Reference in New Issue
Block a user