Uncomment new SinceKotlin and remove obsolete warning suppressions

This commit is contained in:
Alexander Udalov
2021-08-02 15:24:53 +02:00
parent 6c400ce864
commit 98be418245
5 changed files with 6 additions and 11 deletions
@@ -106,7 +106,6 @@ public expect annotation class JvmWildcard()
* Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes * Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes
* in their signature are mangled. * in their signature are mangled.
*/ */
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(CLASS) @Target(CLASS)
@MustBeDocumented @MustBeDocumented
@SinceKotlin("1.5") @SinceKotlin("1.5")
@@ -116,7 +115,6 @@ public expect annotation class JvmInline()
/** /**
* Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods * Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods
*/ */
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(CLASS) @Target(CLASS)
@MustBeDocumented @MustBeDocumented
@OptionalExpectation @OptionalExpectation
@@ -14,6 +14,5 @@ package kotlin.jvm
* *
* @property value the container annotation class, used to hold repeated entries of the annotation in the JVM bytecode. * @property value the container annotation class, used to hold repeated entries of the annotation in the JVM bytecode.
*/ */
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@SinceKotlin("1.6") @SinceKotlin("1.6")
public typealias JvmRepeatable = java.lang.annotation.Repeatable public typealias JvmRepeatable = java.lang.annotation.Repeatable
@@ -140,7 +140,6 @@ public actual annotation class JvmWildcard
* Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes * Adding and removing the annotation is binary incompatible change, since inline classes' methods and functions with inline classes
* in their signature are mangled. * in their signature are mangled.
*/ */
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(AnnotationTarget.CLASS) @Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented @MustBeDocumented
@@ -150,7 +149,6 @@ public actual annotation class JvmInline
/** /**
* Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods * Instructs compiler to mark the class as a record and generate relevant toString/equals/hashCode methods
*/ */
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(AnnotationTarget.CLASS) @Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@MustBeDocumented @MustBeDocumented
@@ -5,6 +5,8 @@
package kotlin.jvm.internal; package kotlin.jvm.internal;
import kotlin.SinceKotlin;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@@ -12,6 +14,6 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE) @Target(ElementType.ANNOTATION_TYPE)
// @SinceKotlin(version = "1.6") @SinceKotlin(version = "1.6")
public @interface RepeatableContainer { public @interface RepeatableContainer {
} }
@@ -3,18 +3,16 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/ */
@file:Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
package kotlin.jvm.internal package kotlin.jvm.internal
import kotlin.reflect.* import kotlin.reflect.*
@SinceKotlin("1.4") @SinceKotlin("1.4")
public class TypeReference /* @SinceKotlin("1.6") constructor */( public class TypeReference @SinceKotlin("1.6") constructor(
override val classifier: KClassifier, override val classifier: KClassifier,
override val arguments: List<KTypeProjection>, override val arguments: List<KTypeProjection>,
/* @SinceKotlin("1.6") */ internal val platformTypeUpperBound: KType?, @SinceKotlin("1.6") internal val platformTypeUpperBound: KType?,
/* @SinceKotlin("1.6") */ internal val flags: Int, @SinceKotlin("1.6") internal val flags: Int,
) : KType { ) : KType {
constructor( constructor(
classifier: KClassifier, classifier: KClassifier,