diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt index 0f2096b55e9..624013db688 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt @@ -10,10 +10,6 @@ package kotlin.reflect * * @param R return type of the callable. */ -@Suppress( - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING" -) // Can be dropped after bootstrap update public actual interface KCallable : KAnnotatedElement { /** * The name of this callable as it was declared in the source code. @@ -29,6 +25,5 @@ public actual interface KCallable : KAnnotatedElement { /** * The type of values returned by this callable. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val returnType: KType } diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KClass.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KClass.kt index bf36da19d59..db6f89572e9 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KClass.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KClass.kt @@ -13,7 +13,6 @@ package kotlin.reflect * * @param T the type of the class. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KClass : KDeclarationContainer, KAnnotatedElement, KClassifier { /** * The simple name of the class as it was declared in the source code, diff --git a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableCollection.kt b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableCollection.kt index b38545c436c..5d52027b687 100644 --- a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableCollection.kt +++ b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableCollection.kt @@ -12,7 +12,6 @@ package kotlin.collections * * @param E the type of elements contained in the collection. The collection is invariant in its element type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableCollection protected actual constructor() : AbstractCollection(), MutableCollection { actual abstract override fun add(element: E): Boolean @@ -57,7 +56,6 @@ public actual abstract class AbstractMutableCollection protected actual const } } - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @Deprecated("Provided so that subclasses inherit this function", level = DeprecationLevel.HIDDEN) @JsName("toJSON") protected fun toJSON(): Any = this.toArray() @@ -67,7 +65,6 @@ public actual abstract class AbstractMutableCollection protected actual const * This method is called every time when a mutating method is called on this mutable collection. * Mutable collections that are built (frozen) must throw `UnsupportedOperationException`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update internal open fun checkIsMutable(): Unit { } } diff --git a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableList.kt b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableList.kt index 1850fe9c98d..bb8c65944d9 100644 --- a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableList.kt +++ b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableList.kt @@ -17,12 +17,7 @@ package kotlin.collections * * @param E the type of elements contained in the list. The list is invariant in its element type. */ -@Suppress( - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING" -) // Can be dropped after bootstrap update public actual abstract class AbstractMutableList protected actual constructor() : AbstractMutableCollection(), MutableList { - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update protected var modCount: Int = 0 abstract override fun add(index: Int, element: E): Unit @@ -86,7 +81,6 @@ public actual abstract class AbstractMutableList protected actual constructor /** * Removes the range of elements from this list starting from [fromIndex] and ending with but not including [toIndex]. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update protected open fun removeRange(fromIndex: Int, toIndex: Int) { val iterator = listIterator(fromIndex) repeat(toIndex - fromIndex) { diff --git a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt index 64cbb661072..36cbaeaa421 100644 --- a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt +++ b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt @@ -18,12 +18,9 @@ package kotlin.collections * @param K the type of map keys. The map is invariant in its key type. * @param V the type of map values. The map is invariant in its value type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableMap protected actual constructor() : AbstractMap(), MutableMap { - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update internal open fun createKeysView(): MutableSet = HashMapKeysDefault(this) - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update internal open fun createValuesView(): MutableCollection = HashMapValuesDefault(this) private var keysView: MutableSet? = null @@ -68,6 +65,5 @@ public actual abstract class AbstractMutableMap protected actual construct * This method is called every time when a mutating method is called on this mutable map. * Mutable maps that are built (frozen) must throw `UnsupportedOperationException`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update internal open fun checkIsMutable() {} } diff --git a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableSet.kt b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableSet.kt index df11715a2e2..42c8df2cef0 100644 --- a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableSet.kt +++ b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableSet.kt @@ -9,7 +9,6 @@ package kotlin.collections * * @param E the type of elements contained in the set. The set is invariant in its element type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableSet protected actual constructor() : AbstractMutableCollection(), MutableSet { /** diff --git a/libraries/stdlib/jvm/runtime/kotlin/TypeAliases.kt b/libraries/stdlib/jvm/runtime/kotlin/TypeAliases.kt index 82a57d9e640..4a7cc770ad6 100644 --- a/libraries/stdlib/jvm/runtime/kotlin/TypeAliases.kt +++ b/libraries/stdlib/jvm/runtime/kotlin/TypeAliases.kt @@ -28,5 +28,4 @@ package kotlin @Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS") @SinceKotlin("1.3") public actual typealias ConcurrentModificationException = java.util.ConcurrentModificationException -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public actual typealias Comparator = java.util.Comparator diff --git a/libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt b/libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt index 3613ac7ee01..d71ea556b50 100644 --- a/libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt +++ b/libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt @@ -7,7 +7,6 @@ package kotlin.text -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public actual typealias Appendable = java.lang.Appendable @Suppress("ACTUAL_WITHOUT_EXPECT") // TODO: some supertypes are missing diff --git a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableCollection.kt b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableCollection.kt index 81f17afee60..0d0539639b0 100644 --- a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableCollection.kt +++ b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableCollection.kt @@ -13,7 +13,6 @@ import java.util.AbstractCollection * @param E the type of elements contained in the collection. The collection is invariant in its element type. */ @SinceKotlin("1.1") -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableCollection protected actual constructor() : MutableCollection, AbstractCollection() { /** * Adds the specified element to the collection. diff --git a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableList.kt b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableList.kt index 192876ab5a9..1290ad7b0b2 100644 --- a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableList.kt +++ b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableList.kt @@ -13,7 +13,6 @@ import java.util.AbstractList * @param E the type of elements contained in the list. The list is invariant in its element type. */ @SinceKotlin("1.1") -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableList protected actual constructor() : MutableList, AbstractList() { /** * Replaces the element at the specified position in this list with the specified element. diff --git a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableMap.kt index 6c89c22b58e..7d7d9676c17 100644 --- a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableMap.kt +++ b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableMap.kt @@ -16,7 +16,6 @@ import java.util.AbstractMap * @param V the type of map values. The map is invariant in its value type. */ @SinceKotlin("1.1") -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableMap protected actual constructor() : MutableMap, AbstractMap() { /** * Associates the specified [value] with the specified [key] in the map. diff --git a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableSet.kt b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableSet.kt index 264da9e63c9..7707b8a44db 100644 --- a/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableSet.kt +++ b/libraries/stdlib/jvm/src/kotlin/collections/AbstractMutableSet.kt @@ -13,7 +13,6 @@ import java.util.AbstractSet * @param E the type of elements contained in the set. The set is invariant in its element type. */ @SinceKotlin("1.1") -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableSet protected actual constructor() : MutableSet, AbstractSet() { /** * Adds the specified element to the set. diff --git a/libraries/stdlib/jvm/src/kotlin/reflect/KCallable.kt b/libraries/stdlib/jvm/src/kotlin/reflect/KCallable.kt index 3aa08bfe314..e38b5122481 100644 --- a/libraries/stdlib/jvm/src/kotlin/reflect/KCallable.kt +++ b/libraries/stdlib/jvm/src/kotlin/reflect/KCallable.kt @@ -10,7 +10,6 @@ package kotlin.reflect * * @param R return type of the callable. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KCallable : KAnnotatedElement { /** * The name of this callable as it was declared in the source code. @@ -28,19 +27,16 @@ public actual interface KCallable : KAnnotatedElement { * If this callable requires a `this` instance or an extension receiver parameter, * they come first in the list in that order. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val parameters: List /** * The type of values returned by this callable. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val returnType: KType /** * The list of type parameters of this callable. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val typeParameters: List @@ -49,7 +45,6 @@ public actual interface KCallable : KAnnotatedElement { * Throws an exception if the number of specified arguments is not equal to the size of [parameters], * or if their types do not match the types of the parameters. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public fun call(vararg args: Any?): R /** @@ -57,41 +52,35 @@ public actual interface KCallable : KAnnotatedElement { * If a parameter is not found in the mapping and is not optional (as per [KParameter.isOptional]), * or its type does not match the type of the provided value, an exception is thrown. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public fun callBy(args: Map): R /** * Visibility of this callable, or `null` if its visibility cannot be represented in Kotlin. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val visibility: KVisibility? /** * `true` if this callable is `final`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isFinal: Boolean /** * `true` if this callable is `open`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isOpen: Boolean /** * `true` if this callable is `abstract`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isAbstract: Boolean /** * `true` if this is a suspending function. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.3") public val isSuspend: Boolean } diff --git a/libraries/stdlib/jvm/src/kotlin/reflect/KClass.kt b/libraries/stdlib/jvm/src/kotlin/reflect/KClass.kt index d01e64e86b9..d8e9cc9cc30 100644 --- a/libraries/stdlib/jvm/src/kotlin/reflect/KClass.kt +++ b/libraries/stdlib/jvm/src/kotlin/reflect/KClass.kt @@ -13,7 +13,6 @@ package kotlin.reflect * * @param T the type of the class. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KClass : KDeclarationContainer, KAnnotatedElement, KClassifier { /** * The simple name of the class as it was declared in the source code, @@ -31,25 +30,21 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme * All functions and properties accessible in this class, including those declared in this class * and all of its superclasses. Does not include constructors. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update override val members: Collection> /** * All constructors declared in this class. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val constructors: Collection> /** * All classes declared inside this class. This includes both inner and static nested classes. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val nestedClasses: Collection> /** * The instance of the object declaration, or `null` if this class is not an object declaration. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val objectInstance: T? /** @@ -61,49 +56,42 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme /** * The list of type parameters of this class. This list does *not* include type parameters of outer classes. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val typeParameters: List /** * The list of immediate supertypes of this class, in the order they are listed in the source code. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val supertypes: List /** * The list of the immediate subclasses if this class is a sealed class, or an empty list otherwise. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.3") public val sealedSubclasses: List> /** * Visibility of this class, or `null` if its visibility cannot be represented in Kotlin. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val visibility: KVisibility? /** * `true` if this class is `final`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isFinal: Boolean /** * `true` if this class is `open`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isOpen: Boolean /** * `true` if this class is `abstract`. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isAbstract: Boolean @@ -112,7 +100,6 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/sealed-classes.html) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isSealed: Boolean @@ -122,7 +109,6 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme * [data object](https://kotlinlang.org/docs/object-declarations.html#data-objects) * in the Kotlin language documentation. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isData: Boolean @@ -131,7 +117,6 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/nested-classes.html#inner-classes) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isInner: Boolean @@ -140,21 +125,18 @@ public actual interface KClass : KDeclarationContainer, KAnnotatedEleme * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/object-declarations.html#companion-objects) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isCompanion: Boolean /** * `true` if this class is a Kotlin functional interface. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.4") public val isFun: Boolean /** * `true` if this class is a value class. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.5") public val isValue: Boolean diff --git a/libraries/stdlib/jvm/src/kotlin/reflect/KFunction.kt b/libraries/stdlib/jvm/src/kotlin/reflect/KFunction.kt index 753b6ef7d63..41c9c2d25bb 100644 --- a/libraries/stdlib/jvm/src/kotlin/reflect/KFunction.kt +++ b/libraries/stdlib/jvm/src/kotlin/reflect/KFunction.kt @@ -8,14 +8,12 @@ package kotlin.reflect /** * Represents a function with introspection capabilities. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KFunction : KCallable, Function { /** * `true` if this function is `inline`. * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/inline-functions.html) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isInline: Boolean @@ -24,7 +22,6 @@ public actual interface KFunction : KCallable, Function { * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/java-interop.html#using-jni-with-kotlin) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isExternal: Boolean @@ -33,7 +30,6 @@ public actual interface KFunction : KCallable, Function { * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/operator-overloading.html) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isOperator: Boolean @@ -42,7 +38,6 @@ public actual interface KFunction : KCallable, Function { * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/functions.html#infix-notation) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isInfix: Boolean diff --git a/libraries/stdlib/jvm/src/kotlin/reflect/KProperty.kt b/libraries/stdlib/jvm/src/kotlin/reflect/KProperty.kt index 20b47e44e7d..0bfad68f930 100644 --- a/libraries/stdlib/jvm/src/kotlin/reflect/KProperty.kt +++ b/libraries/stdlib/jvm/src/kotlin/reflect/KProperty.kt @@ -15,14 +15,12 @@ package kotlin.reflect * * @param V the type of the property value. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KProperty : KCallable { /** * `true` if this property is `lateinit`. * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/properties.html#late-initialized-properties) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isLateinit: Boolean @@ -31,12 +29,10 @@ public actual interface KProperty : KCallable { * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/properties.html#compile-time-constants) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public val isConst: Boolean /** The getter of this property, used to obtain the value of the property. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val getter: Getter /** @@ -60,10 +56,8 @@ public actual interface KProperty : KCallable { /** * Represents a property declared as a `var`. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KMutableProperty : KProperty { /** The setter of this mutable property, used to change the value of the property. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update public val setter: Setter /** @@ -78,7 +72,7 @@ public actual interface KMutableProperty : KProperty { * Such property is either originally declared in a receiverless context such as a package, * or has the receiver bound to it. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update +@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Covariant 'setter' override. The suppress can be dropped in K2 KT-61184 public actual interface KProperty0 : KProperty, () -> V { /** * Returns the current value of the property. @@ -90,7 +84,6 @@ public actual interface KProperty0 : KProperty, () -> V { * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/delegated-properties.html) * for more information. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public fun getDelegate(): Any? @@ -135,7 +128,7 @@ public actual interface KMutableProperty0 : KProperty0, KMutableProperty : KProperty, (T) -> V { /** * Returns the current value of the property. @@ -160,7 +153,6 @@ public actual interface KProperty1 : KProperty, (T) -> V { * * @see [kotlin.reflect.full.getExtensionDelegate] // [KProperty1.getExtensionDelegate] */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public fun getDelegate(receiver: T): Any? @@ -212,7 +204,7 @@ public actual interface KMutableProperty1 : KProperty1, KMutableProp * the type of the extension receiver. * @param V the type of the property value. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update +@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Covariant 'getter' override. The suppress can be dropped in K2 KT-61184 public actual interface KProperty2 : KProperty, (D, E) -> V { /** * Returns the current value of the property. In case of the extension property in a class, @@ -236,7 +228,6 @@ public actual interface KProperty2 : KProperty, (D, E) -> V { * * @see [kotlin.reflect.full.getExtensionDelegate] // [KProperty2.getExtensionDelegate] */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public fun getDelegate(receiver1: D, receiver2: E): Any? diff --git a/libraries/stdlib/jvm/src/kotlin/reflect/KType.kt b/libraries/stdlib/jvm/src/kotlin/reflect/KType.kt index 8a5b2859347..742c89e5cf2 100644 --- a/libraries/stdlib/jvm/src/kotlin/reflect/KType.kt +++ b/libraries/stdlib/jvm/src/kotlin/reflect/KType.kt @@ -9,7 +9,6 @@ package kotlin.reflect * Represents a type. Type is usually either a class with optional type arguments, * or a type parameter of some declaration, plus nullability. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual interface KType : KAnnotatedElement { /** * The declaration of the classifier used in this type. diff --git a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt index 0bfc00c69d7..0bcba06c9ed 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt @@ -10,7 +10,6 @@ package kotlin.collections * * @param E the type of elements contained in the collection. The collection is invariant in its element type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update public actual abstract class AbstractMutableCollection protected actual constructor(): MutableCollection, AbstractCollection() { // Bulk Modification Operations diff --git a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt index 6a7b5b6febb..61eb0d9889c 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt @@ -17,10 +17,6 @@ package kotlin.collections * * @param E the type of elements contained in the list. The list is invariant in its element type. */ -@Suppress( - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", - "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING" -) // Can be dropped after bootstrap update public actual abstract class AbstractMutableList protected actual constructor() : AbstractMutableCollection(), MutableList { /** * The number of times this list is structurally modified. @@ -32,7 +28,6 @@ public actual abstract class AbstractMutableList protected actual constructor * to provide fail-fast behavoir when a concurrent modification is detected during iteration. * [ConcurrentModificationException] will be thrown in this case. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update protected var modCount: Int = 0 abstract override fun add(index: Int, element: E): Unit @@ -86,7 +81,6 @@ public actual abstract class AbstractMutableList protected actual constructor /** * Removes the range of elements from this list starting from [fromIndex] and ending with but not including [toIndex]. */ - @Suppress("NON_ACTUAL_MEMBER_DECLARED_IN_EXPECT_NON_FINAL_CLASSIFIER_ACTUALIZATION_WARNING") // Can be dropped after bootstrap update protected open fun removeRange(fromIndex: Int, toIndex: Int) { val iterator = listIterator(fromIndex) repeat(toIndex - fromIndex) { diff --git a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt index f8d3d124feb..560223d93f3 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt @@ -8,7 +8,6 @@ package kotlin.collections * @param K the type of map keys. The map is invariant in its key type. * @param V the type of map values. The map is invariant in its value type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public actual abstract class AbstractMutableMap protected actual constructor() : AbstractMap(), MutableMap { /** diff --git a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt index 8eb94d9d6e8..47da186ccb6 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt @@ -5,7 +5,6 @@ package kotlin.collections * * @param E the type of elements contained in the set. The set is invariant in its element type. */ -@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_MEMBERS_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING", "ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING") // Can be dropped after bootstrap update @SinceKotlin("1.1") public actual abstract class AbstractMutableSet protected actual constructor() : AbstractMutableCollection(), MutableSet { /**