Uncomment new SinceKotlin and remove obsolete warning suppressions
This commit is contained in:
@@ -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
|
||||
* in their signature are mangled.
|
||||
*/
|
||||
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@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
|
||||
*/
|
||||
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@MustBeDocumented
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.SinceKotlin;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -12,6 +14,6 @@ import java.lang.annotation.Target;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.ANNOTATION_TYPE)
|
||||
// @SinceKotlin(version = "1.6")
|
||||
@SinceKotlin(version = "1.6")
|
||||
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.
|
||||
*/
|
||||
|
||||
@file:Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
|
||||
|
||||
package kotlin.jvm.internal
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
@SinceKotlin("1.4")
|
||||
public class TypeReference /* @SinceKotlin("1.6") constructor */(
|
||||
public class TypeReference @SinceKotlin("1.6") constructor(
|
||||
override val classifier: KClassifier,
|
||||
override val arguments: List<KTypeProjection>,
|
||||
/* @SinceKotlin("1.6") */ internal val platformTypeUpperBound: KType?,
|
||||
/* @SinceKotlin("1.6") */ internal val flags: Int,
|
||||
@SinceKotlin("1.6") internal val platformTypeUpperBound: KType?,
|
||||
@SinceKotlin("1.6") internal val flags: Int,
|
||||
) : KType {
|
||||
constructor(
|
||||
classifier: KClassifier,
|
||||
|
||||
Reference in New Issue
Block a user