Deprecate suppress annotation in favor of Suppress
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
class C {
|
||||
fun foo(): String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) internal final class C {
|
||||
kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) internal final class C {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal final fun foo(): kotlin.String?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
companion object {
|
||||
val foo: String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ internal final class C {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) public companion object Companion {
|
||||
kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) public companion object Companion {
|
||||
private constructor Companion()
|
||||
internal final val foo: kotlin.String? = null
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(): Any? {
|
||||
@suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
return null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
class C {
|
||||
suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
fun foo(): String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
@@ -3,7 +3,7 @@ package
|
||||
internal final class C {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) internal final fun foo(): kotlin.String?
|
||||
kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) internal final fun foo(): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
object C {
|
||||
fun foo(): String?? = null <!USELESS_CAST!>as Nothing??<!>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) internal object C {
|
||||
kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) internal object C {
|
||||
private constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal final fun foo(): kotlin.String?
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class C {
|
||||
fun foo(suppress("REDUNDANT_NULLABLE") p: String?? = null <!USELESS_CAST!>as Nothing??<!>) = p
|
||||
fun foo(@Suppress("REDUNDANT_NULLABLE") p: String?? = null <!USELESS_CAST!>as Nothing??<!>) = p
|
||||
}
|
||||
@@ -3,7 +3,7 @@ package
|
||||
internal final class C {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal final fun foo(/*0*/ kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) p: kotlin.String? = ...): kotlin.String?
|
||||
internal final fun foo(/*0*/ kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) p: kotlin.String? = ...): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class C {
|
||||
suppress("REDUNDANT_NULLABLE")
|
||||
@Suppress("REDUNDANT_NULLABLE")
|
||||
val foo: String?? = null <!USELESS_CAST!>as Nothing?<!>
|
||||
}
|
||||
@@ -2,7 +2,7 @@ package
|
||||
|
||||
internal final class C {
|
||||
public constructor C()
|
||||
kotlin.suppress(names = {"REDUNDANT_NULLABLE"}) internal final val foo: kotlin.String? = null
|
||||
kotlin.Suppress(names = {"REDUNDANT_NULLABLE"}) internal final val foo: kotlin.String? = null
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
+1
-1
@@ -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