Replace annotations with brackets in testData
Just in tests that changed after deprecation
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun foo() {
|
||||
[suppress("warnings")]
|
||||
@suppress("warnings")
|
||||
("": String??)
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
val foo: String?
|
||||
[suppress("warnings")]
|
||||
@suppress("warnings")
|
||||
get(): String?? = null as Nothing?
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(): Any? {
|
||||
[suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION")]
|
||||
@suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
return ""!! <!USELESS_CAST!>as String??<!>
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
val foo: String?
|
||||
[suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION")]
|
||||
@suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
get(): String?? = ""!! <!USELESS_CAST!>as String??<!>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(): Any? {
|
||||
[suppress("REDUNDANT_NULLABLE")]
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
return null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
class C {
|
||||
fun foo(): Any? {
|
||||
[suppress("REDUNDANT_NULLABLE")]
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
val v: String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
return v
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
val foo: String?
|
||||
[suppress("REDUNDANT_NULLABLE")]
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
get(): String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
Reference in New Issue
Block a user