Adjust KotlinSuppressIntentionAction to syntax with '@'

This commit is contained in:
Denis Zharkov
2015-05-06 19:38:51 +03:00
parent 849b8acbf8
commit e59a0dd0c6
80 changed files with 83 additions and 83 deletions
@@ -1,6 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for class C" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
class C {
var foo: String?<caret>? = null
}
@@ -1,7 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for companion object Companion of C" "true"
class C {
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
companion object {
var foo: String?<caret>? = null
}
@@ -1,7 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for enum entry A" "true"
enum class E {
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
A {
fun foo(): String?? = null
}
@@ -1,4 +1,4 @@
// "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
fun foo(): String?<caret>? = null
@@ -1,7 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for val (a, b)" "true"
fun foo() {
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
val (a, b) = Pair<String?<caret>?, String>("", "")
}
@@ -1,7 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for var (a, b)" "true"
fun foo() {
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
var (a, b) = Pair<String?<caret>?, String>("", "")
}
@@ -1,6 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for object C" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
object C {
var foo: String?<caret>? = null
}
@@ -1,3 +1,3 @@
// "Suppress 'REDUNDANT_NULLABLE' for parameter p" "true"
fun foo([suppress("REDUNDANT_NULLABLE")] p: String?<caret>?) = null
fun foo(@suppress("REDUNDANT_NULLABLE") p: String?<caret>?) = null
@@ -1,6 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for trait C" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
trait C {
var foo: String?<caret>?
}
@@ -1,4 +1,4 @@
// "Suppress 'REDUNDANT_NULLABLE' for val foo" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
val foo: String?<caret>? = null
@@ -1,4 +1,4 @@
// "Suppress 'REDUNDANT_NULLABLE' for var foo" "true"
[suppress("REDUNDANT_NULLABLE")]
@suppress("REDUNDANT_NULLABLE")
var foo: String?<caret>? = null