diff --git a/compiler/testData/builtin-classes.txt b/compiler/testData/builtin-classes.txt index ae5fe57c4ee..96afcc0a65b 100644 --- a/compiler/testData/builtin-classes.txt +++ b/compiler/testData/builtin-classes.txt @@ -1243,6 +1243,12 @@ public final class String : kotlin.Comparable, kotlin.CharSequenc } } +kotlin.annotation.target(allowedTargets = {AnnotationTarget.CLASSIFIER, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPE, AnnotationTarget.EXPRESSION, AnnotationTarget.FILE}) kotlin.annotation.annotation(retention = AnnotationRetention.SOURCE) public final class Suppress : kotlin.Annotation { + /*primary*/ public constructor Suppress(/*0*/ vararg names: kotlin.String /*kotlin.Array*/) + internal final val names: kotlin.Array + internal final fun (): kotlin.Array +} + public open class Throwable { /*primary*/ public constructor Throwable(/*0*/ message: kotlin.String? = ..., /*1*/ cause: kotlin.Throwable? = ...) public final fun getCause(): kotlin.Throwable? @@ -1281,13 +1287,6 @@ kotlin.annotation.target(allowedTargets = {AnnotationTarget.VALUE_PARAMETER}) ko kotlin.annotation.target(allowedTargets = {AnnotationTarget.VALUE_PARAMETER}) kotlin.annotation.annotation(mustBeDocumented = true, retention = AnnotationRetention.RUNTIME) public final class noinline : kotlin.Annotation { /*primary*/ public constructor noinline() } - -kotlin.annotation.target(allowedTargets = {AnnotationTarget.CLASSIFIER, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPE, AnnotationTarget.EXPRESSION, AnnotationTarget.FILE}) kotlin.annotation.annotation(retention = AnnotationRetention.SOURCE) public final class suppress : kotlin.Annotation { - /*primary*/ public constructor suppress(/*0*/ vararg names: kotlin.String /*kotlin.Array*/) - internal final val names: kotlin.Array - internal final fun (): kotlin.Array -} - kotlin.annotation.target(allowedTargets = {AnnotationTarget.FUNCTION}) kotlin.annotation.annotation(retention = AnnotationRetention.SOURCE) public final class tailRecursive : kotlin.Annotation { /*primary*/ public constructor tailRecursive() } diff --git a/compiler/testData/cli/jvm/androidPlugin/androidApp.kt b/compiler/testData/cli/jvm/androidPlugin/androidApp.kt index a548af87d96..b840bbfcd33 100644 --- a/compiler/testData/cli/jvm/androidPlugin/androidApp.kt +++ b/compiler/testData/cli/jvm/androidPlugin/androidApp.kt @@ -1,7 +1,7 @@ package android.app public open class Activity { - public open fun findViewById(@suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!! + public open fun findViewById(@Suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!! } public open class Fragment { diff --git a/compiler/testData/cli/jvm/androidPlugin/androidView.kt b/compiler/testData/cli/jvm/androidPlugin/androidView.kt index 4fed644ab23..5a53ffaf672 100644 --- a/compiler/testData/cli/jvm/androidPlugin/androidView.kt +++ b/compiler/testData/cli/jvm/androidPlugin/androidView.kt @@ -1,5 +1,5 @@ package android.view public open class View { - public open fun findViewById(@suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!! + public open fun findViewById(@Suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!! } \ No newline at end of file diff --git a/compiler/testData/cli/jvm/androidPlugin/androidWidget.kt b/compiler/testData/cli/jvm/androidPlugin/androidWidget.kt index 137ff839f0e..dfc94ac20a1 100644 --- a/compiler/testData/cli/jvm/androidPlugin/androidWidget.kt +++ b/compiler/testData/cli/jvm/androidPlugin/androidWidget.kt @@ -1,5 +1,5 @@ package android.widget public open class TextView : android.view.View() { - public fun setText(@suppress("UNUSED_PARAMETER") text: String) {} + public fun setText(@Suppress("UNUSED_PARAMETER") text: String) {} } \ No newline at end of file diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt index 5c51281a46d..c9046ee83df 100644 --- a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/functionWithNonTailRecursions.kt @@ -3,7 +3,7 @@ tailRecursive fun badTails(x : Int) : Int { return 1 + badTails(x - 1) } else if (x == 10) { - @suppress("NON_TAIL_RECURSIVE_CALL") + @Suppress("NON_TAIL_RECURSIVE_CALL") return 1 + badTails(x - 1) } else if (x >= 50) { return badTails(x - 1) diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/suppress.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/suppress.kt index 066006b3085..a2bcb5cb48c 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/suppress.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/suppress.kt @@ -1,5 +1,5 @@ -@file:suppress("abc") +@file:Suppress("abc") fun foo(): Int { - @suppress("xyz") return 1 + @Suppress("xyz") return 1 } diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.kt index 02f0cb13797..0cf408cfd46 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.kt @@ -1,4 +1,4 @@ -suppress("warnings") +@Suppress("warnings") class C { fun foo(p: String??) { // Make sure errors are not suppressed: diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.txt index c3fc9434b71..25ca730416e 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClass.txt @@ -1,6 +1,6 @@ package -kotlin.suppress(names = {"warnings"}) internal final class C { +kotlin.Suppress(names = {"warnings"}) 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*/ p: kotlin.String?): kotlin.Unit diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.kt index f7d08d071e7..5ada7c89028 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.kt @@ -1,5 +1,5 @@ class C { - suppress("warnings") + @Suppress("warnings") companion object { val foo: String?? = null as Nothing? } diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.txt index 860d6f87d4d..cc17bb56b2d 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnClassObject.txt @@ -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 = {"warnings"}) public companion object Companion { + kotlin.Suppress(names = {"warnings"}) 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 diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnExpression.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnExpression.kt index 4038d0ba246..d6e4aa84b65 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnExpression.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnExpression.kt @@ -1,4 +1,4 @@ fun foo() { - @suppress("warnings") + @Suppress("warnings") ("": String??) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.kt index ea54e6a0478..e3417c31183 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.kt @@ -1,4 +1,4 @@ class C { - suppress("warnings") + @Suppress("warnings") fun foo(p: String??) {} } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.txt index 45d1239780f..88ba33bbb59 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnFunction.txt @@ -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 = {"warnings"}) internal final fun foo(/*0*/ p: kotlin.String?): kotlin.Unit + kotlin.Suppress(names = {"warnings"}) internal final fun foo(/*0*/ p: kotlin.String?): kotlin.Unit public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String } diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.kt index cc6afb99b9b..e7a06b4fbc5 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.kt @@ -1,4 +1,4 @@ -suppress("warnings") +@Suppress("warnings") object C { fun foo(p: String??) {} } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.txt index 27b71b9d0ee..3de458af976 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnObject.txt @@ -1,6 +1,6 @@ package -kotlin.suppress(names = {"warnings"}) internal object C { +kotlin.Suppress(names = {"warnings"}) internal object C { private constructor C() public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean internal final fun foo(/*0*/ p: kotlin.String?): kotlin.Unit diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.kt index d1ff4a55e66..de0d798413e 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.kt @@ -1,3 +1,3 @@ class C { - fun foo(suppress("warnings") p: String?? = "" as String) {} + fun foo(@Suppress("warnings") p: String?? = "" as String) {} } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.txt index 55d9e127f2d..385dafccbb0 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnParameter.txt @@ -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 = {"warnings"}) p: kotlin.String? = ...): kotlin.Unit + internal final fun foo(/*0*/ kotlin.Suppress(names = {"warnings"}) p: kotlin.String? = ...): kotlin.Unit public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String } diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.kt index af332512e7f..d3bbb1f20b1 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.kt @@ -1,4 +1,4 @@ class C { - suppress("warnings") + @Suppress("warnings") val foo: String?? = null as Nothing? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.txt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.txt index 9f990142fe8..fda891efa19 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.txt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnProperty.txt @@ -2,7 +2,7 @@ package internal final class C { public constructor C() - kotlin.suppress(names = {"warnings"}) internal final val foo: kotlin.String? = null + kotlin.Suppress(names = {"warnings"}) 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 diff --git a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnPropertyAccessor.kt b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnPropertyAccessor.kt index 840ddab707f..c79c536c4f8 100644 --- a/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnPropertyAccessor.kt +++ b/compiler/testData/diagnostics/tests/suppress/allWarnings/suppressWarningsOnPropertyAccessor.kt @@ -1,5 +1,5 @@ class C { val foo: String? - @suppress("warnings") + @Suppress("warnings") get(): String?? = null as Nothing? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.kt index 46d2e4d4190..53db73eb43c 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.kt @@ -1,5 +1,5 @@ -suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") class C { - suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") fun foo(): String?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.txt index a8afbfdfa50..7361a9b0a70 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/mixed.txt @@ -1,9 +1,9 @@ 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 - kotlin.suppress(names = {"UNNECESSARY_NOT_NULL_ASSERTION"}) internal final fun foo(): kotlin.String? + kotlin.Suppress(names = {"UNNECESSARY_NOT_NULL_ASSERTION"}) 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 } diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.kt index 37182a9130d..28926182e6f 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.kt @@ -1,4 +1,4 @@ -suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") +@Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") class C { fun foo(): String?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.txt index 900d1667150..edad80d2e24 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClass.txt @@ -1,6 +1,6 @@ package -kotlin.suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) internal final class C { +kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) 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? diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.kt index 6c269882b8e..090d5dfd12e 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.kt @@ -1,5 +1,5 @@ class C { - suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") companion object { val foo: String?? = ""!! as String?? } diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.txt index 66c27d6a84d..8106b4761c0 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onClassObject.txt @@ -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", "UNNECESSARY_NOT_NULL_ASSERTION"}) public companion object Companion { + kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) public companion object Companion { private constructor Companion() internal final val foo: kotlin.String? public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onExpression.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onExpression.kt index 686aec64a4c..1dcb13df964 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onExpression.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onExpression.kt @@ -1,4 +1,4 @@ fun foo(): Any? { - @suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") return ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.kt index eebf597f4c2..f4ebb01bfce 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.kt @@ -1,4 +1,4 @@ class C { - suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") fun foo(): String?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.txt index 52f0b8ba5e2..188d4585228 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onFunction.txt @@ -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", "UNNECESSARY_NOT_NULL_ASSERTION"}) internal final fun foo(): kotlin.String? + kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) 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 } diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.kt index c52a6b19796..a5011769499 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.kt @@ -1,4 +1,4 @@ -suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") +@Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") object C { fun foo(): String?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.txt index f61cdf55dde..a830d4d6230 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onObject.txt @@ -1,6 +1,6 @@ package -kotlin.suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) internal object C { +kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) 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? diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.kt index afc547f3999..680a8926ca0 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.kt @@ -1,3 +1,3 @@ class C { - fun foo(suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") p: String?? = ""!! as String??) = p + fun foo(@Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") p: String?? = ""!! as String??) = p } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.txt index 38b46df3133..23ab408a58b 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onParameter.txt @@ -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", "UNNECESSARY_NOT_NULL_ASSERTION"}) p: kotlin.String? = ...): kotlin.String? + internal final fun foo(/*0*/ kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) 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 } diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.kt index a04110c3eda..38048888d1c 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.kt @@ -1,4 +1,4 @@ class C { - suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION") val foo: String?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.txt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.txt index 2ebff560245..abb0c147cd4 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.txt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onProperty.txt @@ -2,7 +2,7 @@ package internal final class C { public constructor C() - kotlin.suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) internal final val foo: kotlin.String? + kotlin.Suppress(names = {"REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION"}) internal final val foo: kotlin.String? 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 diff --git a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onPropertyAccessor.kt b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onPropertyAccessor.kt index 460f56433b2..630ff4fe07d 100644 --- a/compiler/testData/diagnostics/tests/suppress/manyWarnings/onPropertyAccessor.kt +++ b/compiler/testData/diagnostics/tests/suppress/manyWarnings/onPropertyAccessor.kt @@ -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?? = ""!! as String?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.kt index 809739a6ace..72177c8e373 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.kt @@ -1,4 +1,4 @@ -suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") class C { fun foo(): String?? = null as Nothing?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.txt index 583fd58f7fe..84dd60d1a93 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClass.txt @@ -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? diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.kt index 09b3c3b7c5b..1aea6e8c797 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.kt @@ -1,5 +1,5 @@ class C { - suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") companion object { val foo: String?? = null as Nothing?? } diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.txt index e395709a024..0a7e3d01dd2 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onClassObject.txt @@ -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 diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onExpression.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onExpression.kt index 798fcbb57ab..3dffa173770 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onExpression.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onExpression.kt @@ -1,4 +1,4 @@ fun foo(): Any? { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") return null as Nothing?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.kt index 707c40c1612..ce50f76ce9b 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.kt @@ -1,4 +1,4 @@ class C { - suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null as Nothing?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.txt index a8361855ee7..bd8b4050ff3 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onFunction.txt @@ -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 } diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onLocalVariable.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onLocalVariable.kt index 0fee757e609..3861d420d7e 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onLocalVariable.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onLocalVariable.kt @@ -1,6 +1,6 @@ class C { fun foo(): Any? { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") val v: String?? = null as Nothing?? return v } diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.kt index c513f624be3..dd00afa6f30 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.kt @@ -1,4 +1,4 @@ -suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") object C { fun foo(): String?? = null as Nothing?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.txt index 4121a21e575..20c1cfb72e1 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onObject.txt @@ -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? diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.kt index b91c1b68ef3..a99f04d0a75 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.kt @@ -1,3 +1,3 @@ class C { - fun foo(suppress("REDUNDANT_NULLABLE") p: String?? = null as Nothing??) = p + fun foo(@Suppress("REDUNDANT_NULLABLE") p: String?? = null as Nothing??) = p } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.txt index 659746d6fe8..46c280e10b5 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onParameter.txt @@ -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 } diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.kt index e2011b19aab..306e804c290 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.kt @@ -1,4 +1,4 @@ class C { - suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") val foo: String?? = null as Nothing? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.txt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.txt index a9d6a4c8e3a..9c4d78f15d6 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.txt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onProperty.txt @@ -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 diff --git a/compiler/testData/diagnostics/tests/suppress/oneWarning/onPropertyAccessor.kt b/compiler/testData/diagnostics/tests/suppress/oneWarning/onPropertyAccessor.kt index b54c8a38792..8c82baa6741 100644 --- a/compiler/testData/diagnostics/tests/suppress/oneWarning/onPropertyAccessor.kt +++ b/compiler/testData/diagnostics/tests/suppress/oneWarning/onPropertyAccessor.kt @@ -1,5 +1,5 @@ class C { val foo: String? - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") get(): String?? = null as Nothing?? } \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloading.kt b/compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloading.kt index 54cfb300ec1..87ffa2f927e 100644 --- a/compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloading.kt +++ b/compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/overloading.kt @@ -19,5 +19,5 @@ fun test(d: dynamic) { // Checking specificity of `dynamic` vs `Nothing` nothing(d).checkType { _() } nothing("").checkType { _() } - @suppress("UNREACHABLE_CODE") nothing(null!!).checkType { _() } + @Suppress("UNREACHABLE_CODE") nothing(null!!).checkType { _() } } \ No newline at end of file diff --git a/core/builtins/src/kotlin/Annotations.kt b/core/builtins/src/kotlin/Annotations.kt index ded577bb484..4ad34e08f76 100644 --- a/core/builtins/src/kotlin/Annotations.kt +++ b/core/builtins/src/kotlin/Annotations.kt @@ -67,7 +67,7 @@ public annotation(mustBeDocumented = true) class Extension */ target(CLASSIFIER, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, EXPRESSION, FILE) -public annotation(retention = SOURCE) class suppress(vararg val names: String) +public annotation(retention = SOURCE) class Suppress(vararg val names: String) /** * Enables the tail call optimization for the annotated function. If the annotated function diff --git a/core/descriptors/src/org/jetbrains/kotlin/builtins/KotlinBuiltIns.java b/core/descriptors/src/org/jetbrains/kotlin/builtins/KotlinBuiltIns.java index 644edffacd0..752d620d85a 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/builtins/KotlinBuiltIns.java +++ b/core/descriptors/src/org/jetbrains/kotlin/builtins/KotlinBuiltIns.java @@ -155,7 +155,7 @@ public class KotlinBuiltIns { public final FqNameUnsafe any = fqNameUnsafe("Any"); public final FqNameUnsafe nothing = fqNameUnsafe("Nothing"); public final FqNameUnsafe cloneable = fqNameUnsafe("Cloneable"); - public final FqNameUnsafe suppress = fqNameUnsafe("suppress"); + public final FqNameUnsafe suppress = fqNameUnsafe("Suppress"); public final FqNameUnsafe unit = fqNameUnsafe("Unit"); public final FqNameUnsafe string = fqNameUnsafe("String"); public final FqNameUnsafe array = fqNameUnsafe("Array"); diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/quickfix/KotlinSuppressIntentionAction.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/quickfix/KotlinSuppressIntentionAction.kt index 91491f09064..1f330269fbe 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/quickfix/KotlinSuppressIntentionAction.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/quickfix/KotlinSuppressIntentionAction.kt @@ -126,7 +126,7 @@ public class KotlinSuppressIntentionAction( } } - private fun suppressAnnotationText(id: String) = "@suppress($id)" + private fun suppressAnnotationText(id: String) = "@Suppress($id)" private fun findSuppressAnnotation(annotated: JetAnnotated): JetAnnotationEntry? { val context = annotated.analyze() diff --git a/idea/testData/checker/AnnotationOnFile.kt b/idea/testData/checker/AnnotationOnFile.kt index 8e852772ad1..3457d1472c2 100644 --- a/idea/testData/checker/AnnotationOnFile.kt +++ b/idea/testData/checker/AnnotationOnFile.kt @@ -1,10 +1,10 @@ @file:kotlin.deprecated("message") -@file:suppress(BAR) -@file:suppress(BAZ) +@file:Suppress(BAR) +@file:Suppress(BAZ) @kotlin.deprecated("message") -@suppress(BAR) -@suppress(BAZ) +@Suppress(BAR) +@Suppress(BAZ) @file:myAnnotation(1, "string") @file:boo.myAnnotation(1, BAR) diff --git a/idea/testData/multiFileHighlighting/dependencies/util.kt b/idea/testData/multiFileHighlighting/dependencies/util.kt index 1cbe0451c83..58fc46097bf 100644 --- a/idea/testData/multiFileHighlighting/dependencies/util.kt +++ b/idea/testData/multiFileHighlighting/dependencies/util.kt @@ -9,12 +9,12 @@ interface T2 { } } -suppress("UNRESOLVED_REFERENCE") +@Suppress"UNRESOLVED_REFERENCE") class Invalid: I class A(val i: Int) -suppress("FINAL_SUPERTYPE") +@Suppress"FINAL_SUPERTYPE") class B: A(1) { } diff --git a/idea/testData/quickfix/autoImports/falsePostfixOperator.before.Main.kt b/idea/testData/quickfix/autoImports/falsePostfixOperator.before.Main.kt index 68dbc3ba03b..f5837282e22 100644 --- a/idea/testData/quickfix/autoImports/falsePostfixOperator.before.Main.kt +++ b/idea/testData/quickfix/autoImports/falsePostfixOperator.before.Main.kt @@ -10,7 +10,7 @@ package h interface H -@suppress("UNUSED_CHANGED_VALUE") +@Suppress("UNUSED_CHANGED_VALUE") fun f(h: H?) { var h1 = h h1++ diff --git a/idea/testData/quickfix/suppress/annotationPosition/paramWithModifier.kt.after b/idea/testData/quickfix/suppress/annotationPosition/paramWithModifier.kt.after index 96c8c7b964a..c3f25a5b847 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/paramWithModifier.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/paramWithModifier.kt.after @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for parameter p" "true" -fun foo(@suppress("REDUNDANT_NULLABLE") vararg p: String??) = null \ No newline at end of file +fun foo(@Suppress("REDUNDANT_NULLABLE") vararg p: String??) = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnThePreviousLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnThePreviousLine.kt.after index 6d032987a71..ccb3ce434ff 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnThePreviousLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnThePreviousLine.kt.after @@ -1,5 +1,5 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") public fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnTheSameLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnTheSameLine.kt.after index 1aee3b32d81..0235596bf4f 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnTheSameLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionModifierOnTheSameLine.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") public fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionNoModifiers.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionNoModifiers.kt.after index 27fddc94690..c41d03d6ed2 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionNoModifiers.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionNoModifiers.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt index 5e5e1cf3809..1d00d27190c 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("FOO") +@Suppress("FOO") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt.after index a6761573f14..642cb86c988 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressAnotherPreviousLine.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("FOO", "REDUNDANT_NULLABLE") +@Suppress("FOO", "REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt index 958b427dd2b..2965e1db2a9 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress() +@Suppress() fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt.after index 27fddc94690..c41d03d6ed2 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressEmptyArgsPreviousLine.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt index 8ccfb8c47f9..0d6c47a5c04 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress +@Suppress fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt.after index 27fddc94690..c41d03d6ed2 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLine.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt index 6116b22a5e0..0d6c47a5c04 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -suppress +@Suppress fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt.after index bafb1c35a83..c41d03d6ed2 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsPreviousLineBare.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt index 08b5f80a467..4e6a393f7b1 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress fun foo(): String?? = null \ No newline at end of file +@Suppress fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt.after index 5e9b96867e6..b758b3cc93b 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLine.kt.after @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt index 7aa70d32710..4e6a393f7b1 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -suppress fun foo(): String?? = null \ No newline at end of file +@Suppress fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt.after index 3755f0ae839..b758b3cc93b 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionSuppressNoArgsTheSameLineBare.kt.after @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotation.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotation.kt.after index 42ae11b0649..7a45e83b162 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotation.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotation.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") @ann fun foo(): String?? = null annotation class ann \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotationBare.kt.after b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotationBare.kt.after index a178ea6e19b..69937479c6f 100644 --- a/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotationBare.kt.after +++ b/idea/testData/quickfix/suppress/annotationPosition/topLevelFunctionUnrelatedAnnotationBare.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") ann fun foo(): String?? = null annotation class ann \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/availability/localFunSuppressForLocal.kt.after b/idea/testData/quickfix/suppress/availability/localFunSuppressForLocal.kt.after index fae97af5dd8..2f5158489d6 100644 --- a/idea/testData/quickfix/suppress/availability/localFunSuppressForLocal.kt.after +++ b/idea/testData/quickfix/suppress/availability/localFunSuppressForLocal.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun local" "true" fun foo() { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") fun local(): String?? = null } diff --git a/idea/testData/quickfix/suppress/availability/localFunSuppressForOuter.kt.after b/idea/testData/quickfix/suppress/availability/localFunSuppressForOuter.kt.after index 799bad2bf38..54e7d8f2186 100644 --- a/idea/testData/quickfix/suppress/availability/localFunSuppressForOuter.kt.after +++ b/idea/testData/quickfix/suppress/availability/localFunSuppressForOuter.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo() { fun local(): String?? = null } diff --git a/idea/testData/quickfix/suppress/availability/localValSuppressForFun.kt.after b/idea/testData/quickfix/suppress/availability/localValSuppressForFun.kt.after index 67df06c34c0..0512009799f 100644 --- a/idea/testData/quickfix/suppress/availability/localValSuppressForFun.kt.after +++ b/idea/testData/quickfix/suppress/availability/localValSuppressForFun.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo() { val a: String?? = null } diff --git a/idea/testData/quickfix/suppress/availability/localValSuppressForVal.kt.after b/idea/testData/quickfix/suppress/availability/localValSuppressForVal.kt.after index 05da93f76fa..62bdb1999a6 100644 --- a/idea/testData/quickfix/suppress/availability/localValSuppressForVal.kt.after +++ b/idea/testData/quickfix/suppress/availability/localValSuppressForVal.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for val a" "true" fun foo() { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") val a: String?? = null } diff --git a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForMember.kt.after b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForMember.kt.after index 5a5a1a8f8db..add2aca42f5 100644 --- a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForMember.kt.after +++ b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForMember.kt.after @@ -2,7 +2,7 @@ class C { class D { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null } } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForNested.kt.after b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForNested.kt.after index 4cb8fdc0c16..4aa459a8615 100644 --- a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForNested.kt.after +++ b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForNested.kt.after @@ -1,7 +1,7 @@ // "Suppress 'REDUNDANT_NULLABLE' for class D" "true" class C { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") class D { fun foo(): String?? = null } diff --git a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForOuter.kt.after b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForOuter.kt.after index 9d8a2736835..8ac59017a93 100644 --- a/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForOuter.kt.after +++ b/idea/testData/quickfix/suppress/availability/memberOfNestedSuppressForOuter.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for class C" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") class C { class D { fun foo(): String?? = null diff --git a/idea/testData/quickfix/suppress/availability/memberSuppressForClass.kt.after b/idea/testData/quickfix/suppress/availability/memberSuppressForClass.kt.after index d922ce90577..39c0f8f54a9 100644 --- a/idea/testData/quickfix/suppress/availability/memberSuppressForClass.kt.after +++ b/idea/testData/quickfix/suppress/availability/memberSuppressForClass.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for class C" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") class C { fun foo(): String?? = null } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/availability/memberSuppressForMember.kt.after b/idea/testData/quickfix/suppress/availability/memberSuppressForMember.kt.after index e66aeb0ee44..81d830d7018 100644 --- a/idea/testData/quickfix/suppress/availability/memberSuppressForMember.kt.after +++ b/idea/testData/quickfix/suppress/availability/memberSuppressForMember.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" class C { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/availability/topLevelFunctionAlreadySuppressed.kt b/idea/testData/quickfix/suppress/availability/topLevelFunctionAlreadySuppressed.kt index 5559044033e..98b4cf0b12c 100644 --- a/idea/testData/quickfix/suppress/availability/topLevelFunctionAlreadySuppressed.kt +++ b/idea/testData/quickfix/suppress/availability/topLevelFunctionAlreadySuppressed.kt @@ -1,4 +1,4 @@ // "class com.intellij.codeInspection.SuppressIntentionAction" "false" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/class.kt.after b/idea/testData/quickfix/suppress/declarationKinds/class.kt.after index 999704754cd..fa46e2469fd 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/class.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/class.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for class C" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") class C { var foo: String?? = null } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/classObject.kt.after b/idea/testData/quickfix/suppress/declarationKinds/classObject.kt.after index b974751f96f..dc5fbbc155c 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/classObject.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/classObject.kt.after @@ -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?? = null } diff --git a/idea/testData/quickfix/suppress/declarationKinds/enumEntry.kt.after b/idea/testData/quickfix/suppress/declarationKinds/enumEntry.kt.after index 60de146d975..638d5651ca4 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/enumEntry.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/enumEntry.kt.after @@ -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 } diff --git a/idea/testData/quickfix/suppress/declarationKinds/fun.kt.after b/idea/testData/quickfix/suppress/declarationKinds/fun.kt.after index 27fddc94690..c41d03d6ed2 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/fun.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/fun.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/multiVal.kt.after b/idea/testData/quickfix/suppress/declarationKinds/multiVal.kt.after index 1722418d84f..bd724ef0469 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/multiVal.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/multiVal.kt.after @@ -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>("", "") } diff --git a/idea/testData/quickfix/suppress/declarationKinds/multiVar.kt.after b/idea/testData/quickfix/suppress/declarationKinds/multiVar.kt.after index 35a6a0213b5..dad8d2ad98d 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/multiVar.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/multiVar.kt.after @@ -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>("", "") } diff --git a/idea/testData/quickfix/suppress/declarationKinds/object.kt.after b/idea/testData/quickfix/suppress/declarationKinds/object.kt.after index 8e11002a4a2..1a668c426a8 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/object.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/object.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for object C" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") object C { var foo: String?? = null } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/param.kt.after b/idea/testData/quickfix/suppress/declarationKinds/param.kt.after index d4bb4bb5920..76b4d404017 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/param.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/param.kt.after @@ -1,3 +1,3 @@ // "Suppress 'REDUNDANT_NULLABLE' for parameter p" "true" -fun foo(@suppress("REDUNDANT_NULLABLE") p: String??) = null \ No newline at end of file +fun foo(@Suppress("REDUNDANT_NULLABLE") p: String??) = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/trait.kt.after b/idea/testData/quickfix/suppress/declarationKinds/trait.kt.after index 198674ab239..4fe27e49e0f 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/trait.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/trait.kt.after @@ -1,6 +1,6 @@ // "Suppress 'REDUNDANT_NULLABLE' for interface C" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") interface C { var foo: String?? } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/val.kt.after b/idea/testData/quickfix/suppress/declarationKinds/val.kt.after index 784bcd927b1..a4fa63f3625 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/val.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/val.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for val foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") val foo: String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/declarationKinds/var.kt.after b/idea/testData/quickfix/suppress/declarationKinds/var.kt.after index 02373d91cad..4d67f34ff10 100644 --- a/idea/testData/quickfix/suppress/declarationKinds/var.kt.after +++ b/idea/testData/quickfix/suppress/declarationKinds/var.kt.after @@ -1,4 +1,4 @@ // "Suppress 'REDUNDANT_NULLABLE' for var foo" "true" -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") var foo: String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt b/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt index 2234ee3e4e9..88234131815 100644 --- a/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt +++ b/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt @@ -1,5 +1,5 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" // ERROR: An integer literal does not conform to the expected type kotlin.String -@suppress(1) +@Suppress(1) fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt.after b/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt.after index 7b4f7ba4691..d9b994dd9b1 100644 --- a/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt.after +++ b/idea/testData/quickfix/suppress/errorRecovery/nonStringInSuppress.kt.after @@ -1,5 +1,5 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" // ERROR: An integer literal does not conform to the expected type kotlin.String -@suppress(1, "REDUNDANT_NULLABLE") +@Suppress(1, "REDUNDANT_NULLABLE") fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/errorRecovery/unresolvedAnnotation.kt.after b/idea/testData/quickfix/suppress/errorRecovery/unresolvedAnnotation.kt.after index e896cfb56b9..ee37662af8e 100644 --- a/idea/testData/quickfix/suppress/errorRecovery/unresolvedAnnotation.kt.after +++ b/idea/testData/quickfix/suppress/errorRecovery/unresolvedAnnotation.kt.after @@ -1,5 +1,5 @@ // "Suppress 'REDUNDANT_NULLABLE' for fun foo" "true" // ERROR: Unresolved reference: ann -@suppress("REDUNDANT_NULLABLE") +@Suppress("REDUNDANT_NULLABLE") @ann fun foo(): String?? = null \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/andAnd.kt.after b/idea/testData/quickfix/suppress/forStatement/andAnd.kt.after index d5660c8026c..73f98e2d3ab 100644 --- a/idea/testData/quickfix/suppress/forStatement/andAnd.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/andAnd.kt.after @@ -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!! && true) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/annotatedExpr.kt.after b/idea/testData/quickfix/suppress/forStatement/annotatedExpr.kt.after index 25bc15164a8..ba9de61828f 100644 --- a/idea/testData/quickfix/suppress/forStatement/annotatedExpr.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/annotatedExpr.kt.after @@ -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 ""!! } diff --git a/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt b/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt index 3017b641a50..c6ece63f798 100644 --- a/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt +++ b/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt @@ -1,7 +1,7 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("Foo") ""!! + @Suppress("Foo") ""!! } annotation class ann \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt.after b/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt.after index 0bc27a2b461..4f5626f6672 100644 --- a/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/annotatedExprWithSuppress.kt.after @@ -1,7 +1,7 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("Foo", "UNNECESSARY_NOT_NULL_ASSERTION") ""!! + @Suppress("Foo", "UNNECESSARY_NOT_NULL_ASSERTION") ""!! } annotation class ann \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/arrayRead.kt.after b/idea/testData/quickfix/suppress/forStatement/arrayRead.kt.after index a3ddcdebba7..2f9f7884792 100644 --- a/idea/testData/quickfix/suppress/forStatement/arrayRead.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/arrayRead.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo(a: Array) { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") a[1!!] } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/as.kt.after b/idea/testData/quickfix/suppress/forStatement/as.kt.after index d6d258c3033..4053b51fcad 100644 --- a/idea/testData/quickfix/suppress/forStatement/as.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/as.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (""!! as String) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/asSafe.kt.after b/idea/testData/quickfix/suppress/forStatement/asSafe.kt.after index 1f4a52845ff..4f18186c29d 100644 --- a/idea/testData/quickfix/suppress/forStatement/asSafe.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/asSafe.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (""!! as? String) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/assign.kt.after b/idea/testData/quickfix/suppress/forStatement/assign.kt.after index 2fa4875ed8c..8c27f33a52a 100644 --- a/idea/testData/quickfix/suppress/forStatement/assign.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/assign.kt.after @@ -3,6 +3,6 @@ fun foo() { var x = 0 - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (x = 1!!) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/call.kt.after b/idea/testData/quickfix/suppress/forStatement/call.kt.after index c5baf7db502..f5f98f27f3c 100644 --- a/idea/testData/quickfix/suppress/forStatement/call.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/call.kt.after @@ -1,7 +1,7 @@ // "Suppress 'REDUNDANT_NULLABLE' for statement " "true" fun foo() { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") call("": String??) } diff --git a/idea/testData/quickfix/suppress/forStatement/colon.kt.after b/idea/testData/quickfix/suppress/forStatement/colon.kt.after index b44e654a746..032f244bdf7 100644 --- a/idea/testData/quickfix/suppress/forStatement/colon.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/colon.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (""!! : String) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/doWhile.kt.after b/idea/testData/quickfix/suppress/forStatement/doWhile.kt.after index 9a6d1936de2..2ff762d14ce 100644 --- a/idea/testData/quickfix/suppress/forStatement/doWhile.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/doWhile.kt.after @@ -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!!) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/dotQualified.kt.after b/idea/testData/quickfix/suppress/forStatement/dotQualified.kt.after index 1de6837b441..b8fffa0178d 100644 --- a/idea/testData/quickfix/suppress/forStatement/dotQualified.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/dotQualified.kt.after @@ -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(""!!) } diff --git a/idea/testData/quickfix/suppress/forStatement/elvis.kt.after b/idea/testData/quickfix/suppress/forStatement/elvis.kt.after index 0a96f61239e..08a17b68106 100644 --- a/idea/testData/quickfix/suppress/forStatement/elvis.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/elvis.kt.after @@ -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!! ?: 0) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/eqEq.kt.after b/idea/testData/quickfix/suppress/forStatement/eqEq.kt.after index e4183e23617..ae8ffde8d5f 100644 --- a/idea/testData/quickfix/suppress/forStatement/eqEq.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/eqEq.kt.after @@ -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!! == 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/for.kt.after b/idea/testData/quickfix/suppress/forStatement/for.kt.after index bace1d833f8..418435cfd77 100644 --- a/idea/testData/quickfix/suppress/forStatement/for.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/for.kt.after @@ -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()!!) {} } diff --git a/idea/testData/quickfix/suppress/forStatement/if.kt.after b/idea/testData/quickfix/suppress/forStatement/if.kt.after index b992cc750da..6f2830afe49 100644 --- a/idea/testData/quickfix/suppress/forStatement/if.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/if.kt.after @@ -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!!) {} } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/in.kt.after b/idea/testData/quickfix/suppress/forStatement/in.kt.after index d960ea643d6..842e732daa2 100644 --- a/idea/testData/quickfix/suppress/forStatement/in.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/in.kt.after @@ -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!! in (1..2)) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/infix.kt.after b/idea/testData/quickfix/suppress/forStatement/infix.kt.after index 071609d3f8d..bcef56f2ee6 100644 --- a/idea/testData/quickfix/suppress/forStatement/infix.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/infix.kt.after @@ -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!! plus 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/is.kt.after b/idea/testData/quickfix/suppress/forStatement/is.kt.after index b9cb6cb7207..2843df4101b 100644 --- a/idea/testData/quickfix/suppress/forStatement/is.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/is.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (""!! is String) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/labeled.kt.after b/idea/testData/quickfix/suppress/forStatement/labeled.kt.after index 3cc222d5d7b..f1d914ecf34 100644 --- a/idea/testData/quickfix/suppress/forStatement/labeled.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/labeled.kt.after @@ -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@""!! } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/less.kt.after b/idea/testData/quickfix/suppress/forStatement/less.kt.after index f136a7f8ebc..2a8373b3264 100644 --- a/idea/testData/quickfix/suppress/forStatement/less.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/less.kt.after @@ -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!! < 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/mul.kt.after b/idea/testData/quickfix/suppress/forStatement/mul.kt.after index 30a6a2752f1..4ea2ba1fb0d 100644 --- a/idea/testData/quickfix/suppress/forStatement/mul.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/mul.kt.after @@ -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!! * 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/orOr.kt.after b/idea/testData/quickfix/suppress/forStatement/orOr.kt.after index 07609ecbc44..2cb37673af8 100644 --- a/idea/testData/quickfix/suppress/forStatement/orOr.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/orOr.kt.after @@ -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!! || true) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/parenthesized.kt.after b/idea/testData/quickfix/suppress/forStatement/parenthesized.kt.after index 12cec8bc52b..d000f2c9e33 100644 --- a/idea/testData/quickfix/suppress/forStatement/parenthesized.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/parenthesized.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") (""!!) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/plus.kt.after b/idea/testData/quickfix/suppress/forStatement/plus.kt.after index 82566ecaa0e..e5716cac38d 100644 --- a/idea/testData/quickfix/suppress/forStatement/plus.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/plus.kt.after @@ -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!! + 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/postfix.kt.after b/idea/testData/quickfix/suppress/forStatement/postfix.kt.after index e93274d2d71..d6fcb10278a 100644 --- a/idea/testData/quickfix/suppress/forStatement/postfix.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/postfix.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") ""!! } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/postfixPlusPlus.kt.after b/idea/testData/quickfix/suppress/forStatement/postfixPlusPlus.kt.after index 55d4790882f..00a56d6a380 100644 --- a/idea/testData/quickfix/suppress/forStatement/postfixPlusPlus.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/postfixPlusPlus.kt.after @@ -2,7 +2,7 @@ fun foo() { var v = Box() - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") (v: Box?>)++ } diff --git a/idea/testData/quickfix/suppress/forStatement/prefixPlusPlus.kt.after b/idea/testData/quickfix/suppress/forStatement/prefixPlusPlus.kt.after index 21e4f654338..617ed2980c5 100644 --- a/idea/testData/quickfix/suppress/forStatement/prefixPlusPlus.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/prefixPlusPlus.kt.after @@ -2,7 +2,7 @@ fun foo() { var v = Box() - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") ++(v: Box?>) } diff --git a/idea/testData/quickfix/suppress/forStatement/range.kt.after b/idea/testData/quickfix/suppress/forStatement/range.kt.after index 21effd5d193..298bbeecb94 100644 --- a/idea/testData/quickfix/suppress/forStatement/range.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/range.kt.after @@ -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!! .. 2) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/return.kt.after b/idea/testData/quickfix/suppress/forStatement/return.kt.after index d5fc185f640..56f577e3921 100644 --- a/idea/testData/quickfix/suppress/forStatement/return.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/return.kt.after @@ -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 ""!! } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/safeQualified.kt.after b/idea/testData/quickfix/suppress/forStatement/safeQualified.kt.after index 0e736cab053..ea4a4b5b9eb 100644 --- a/idea/testData/quickfix/suppress/forStatement/safeQualified.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/safeQualified.kt.after @@ -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(""!!) } diff --git a/idea/testData/quickfix/suppress/forStatement/simpleName.kt.after b/idea/testData/quickfix/suppress/forStatement/simpleName.kt.after index 8525e9482d1..cf13e690eab 100644 --- a/idea/testData/quickfix/suppress/forStatement/simpleName.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/simpleName.kt.after @@ -2,6 +2,6 @@ fun foo() { val a = 1 - @suppress("UNUSED_EXPRESSION") + @Suppress("UNUSED_EXPRESSION") a } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/stringTemplate.kt.after b/idea/testData/quickfix/suppress/forStatement/stringTemplate.kt.after index 88e0c1bb62e..e8e6c0c2380 100644 --- a/idea/testData/quickfix/suppress/forStatement/stringTemplate.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/stringTemplate.kt.after @@ -1,6 +1,6 @@ // "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true" fun foo() { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") "${""!!}" } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/throw.kt.after b/idea/testData/quickfix/suppress/forStatement/throw.kt.after index 6d13d377494..b1596015743 100644 --- a/idea/testData/quickfix/suppress/forStatement/throw.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/throw.kt.after @@ -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(""!!) } \ No newline at end of file diff --git a/idea/testData/quickfix/suppress/forStatement/try.kt.after b/idea/testData/quickfix/suppress/forStatement/try.kt.after index a5220673336..b640b9368a8 100644 --- a/idea/testData/quickfix/suppress/forStatement/try.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/try.kt.after @@ -2,7 +2,7 @@ fun foo() { try { - @suppress("UNNECESSARY_NOT_NULL_ASSERTION") + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") ""!! } finally { diff --git a/idea/testData/quickfix/suppress/forStatement/whenExpressionEntry.kt.after b/idea/testData/quickfix/suppress/forStatement/whenExpressionEntry.kt.after index 8a40d1aa075..0f54df93c6d 100644 --- a/idea/testData/quickfix/suppress/forStatement/whenExpressionEntry.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/whenExpressionEntry.kt.after @@ -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) { ""!! -> {} } diff --git a/idea/testData/quickfix/suppress/forStatement/whenInEntry.kt.after b/idea/testData/quickfix/suppress/forStatement/whenInEntry.kt.after index 675bb9fe743..24ac574d822 100644 --- a/idea/testData/quickfix/suppress/forStatement/whenInEntry.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/whenInEntry.kt.after @@ -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!!..2 -> {} } diff --git a/idea/testData/quickfix/suppress/forStatement/whenIsEntry.kt.after b/idea/testData/quickfix/suppress/forStatement/whenIsEntry.kt.after index 01081d34a2d..2428a1d6f77 100644 --- a/idea/testData/quickfix/suppress/forStatement/whenIsEntry.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/whenIsEntry.kt.after @@ -1,7 +1,7 @@ // "Suppress 'REDUNDANT_NULLABLE' for statement " "true" fun foo() { - @suppress("REDUNDANT_NULLABLE") + @Suppress("REDUNDANT_NULLABLE") when ("") { is Any?? -> {} } diff --git a/idea/testData/quickfix/suppress/forStatement/whenSubject.kt.after b/idea/testData/quickfix/suppress/forStatement/whenSubject.kt.after index 2a364fbf5f7..548082b04db 100644 --- a/idea/testData/quickfix/suppress/forStatement/whenSubject.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/whenSubject.kt.after @@ -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 (""!!) { is Any -> {} } diff --git a/idea/testData/quickfix/suppress/forStatement/while.kt.after b/idea/testData/quickfix/suppress/forStatement/while.kt.after index 0ab4be08f0d..7c44e2e4e4f 100644 --- a/idea/testData/quickfix/suppress/forStatement/while.kt.after +++ b/idea/testData/quickfix/suppress/forStatement/while.kt.after @@ -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!!) {} } \ No newline at end of file