Deprecate suppress annotation in favor of Suppress
This commit is contained in:
@@ -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 interface C" "true"
|
||||
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
interface 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
|
||||
Reference in New Issue
Block a user