Deprecate suppress annotation in favor of Suppress
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(false<caret>!! && true)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@ann ""<caret>!!
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("Foo") ""<caret>!!
|
||||
@Suppress("Foo") ""<caret>!!
|
||||
}
|
||||
|
||||
annotation class ann
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("Foo", "UNNECESSARY_NOT_NULL_ASSERTION") ""<caret>!!
|
||||
@Suppress("Foo", "UNNECESSARY_NOT_NULL_ASSERTION") ""<caret>!!
|
||||
}
|
||||
|
||||
annotation class ann
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(a: Array<Int>) {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
a[1<caret>!!]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!! as String)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!! as? String)
|
||||
}
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
fun foo() {
|
||||
var x = 0
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(x = 1<caret>!!)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
call("": String?<caret>?)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!! : String)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
do {}
|
||||
while (true<caret>!!)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(a: C) {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
a.foo(""<caret>!!)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! ?: 0)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! == 2)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
for (i in list()<caret>!!) {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
if (true<caret>!!) {}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! in (1..2))
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! plus 2)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!! is String)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
label@""<caret>!!
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! < 2)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! * 2)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(false<caret>!! || true)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!!)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! + 2)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
""<caret>!!
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
var v = Box<String?>()
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
(v: Box<String?<caret>?>)++
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
var v = Box<String?>()
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
++(v: Box<String?<caret>?>)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(1<caret>!! .. 2)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(): Any {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
return ""<caret>!!
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(a: C) {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
a?.foo(""<caret>!!)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
fun foo() {
|
||||
val a = 1
|
||||
@suppress("UNUSED_EXPRESSION")
|
||||
@Suppress("UNUSED_EXPRESSION")
|
||||
a
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
"${""<caret>!!}"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(): Any {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
throw Exception(""<caret>!!)
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
try {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
""<caret>!!
|
||||
}
|
||||
finally {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo(a: Any) {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
when (a) {
|
||||
""<caret>!! -> {}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
when (1) {
|
||||
in 1<caret>!!..2 -> {}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
when ("") {
|
||||
is Any?<caret>? -> {}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
when (""<caret>!!) {
|
||||
is Any -> {}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
while (true<caret>!!) {}
|
||||
}
|
||||
Reference in New Issue
Block a user