Cleanup obsolete RequireKotlin annotations
They were used to prevent older compiler versions from using specific API, but now these versions are even older than the first compiler version (namely 1.6) that can read this stdlib.
This commit is contained in:
@@ -24,7 +24,6 @@ import kotlin.reflect.KClass
|
||||
@Target(ANNOTATION_CLASS)
|
||||
@Retention(BINARY)
|
||||
@SinceKotlin("1.2")
|
||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
@Deprecated("Please use RequiresOptIn instead.")
|
||||
public annotation class Experimental(val level: Level = Level.ERROR) {
|
||||
@@ -51,7 +50,6 @@ public annotation class Experimental(val level: Level = Level.ERROR) {
|
||||
)
|
||||
@Retention(SOURCE)
|
||||
@SinceKotlin("1.2")
|
||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
@Deprecated("Please use OptIn instead.", ReplaceWith("OptIn(*markerClass)", "kotlin.OptIn"))
|
||||
public annotation class UseExperimental(
|
||||
|
||||
@@ -32,7 +32,6 @@ import kotlin.internal.RequireKotlinVersionKind
|
||||
TYPEALIAS
|
||||
)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
public annotation class ExperimentalMultiplatform
|
||||
|
||||
/**
|
||||
@@ -48,5 +47,4 @@ public annotation class ExperimentalMultiplatform
|
||||
@Target(ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@ExperimentalMultiplatform
|
||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
public annotation class OptionalExpectation
|
||||
|
||||
@@ -26,7 +26,6 @@ import kotlin.reflect.KClass
|
||||
@Target(ANNOTATION_CLASS)
|
||||
@Retention(BINARY)
|
||||
@SinceKotlin("1.3")
|
||||
@RequireKotlin("1.3.70", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
public annotation class RequiresOptIn(
|
||||
val message: String = "",
|
||||
val level: Level = Level.ERROR
|
||||
@@ -53,7 +52,6 @@ public annotation class RequiresOptIn(
|
||||
)
|
||||
@Retention(SOURCE)
|
||||
@SinceKotlin("1.3")
|
||||
@RequireKotlin("1.3.70", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
public annotation class OptIn(
|
||||
vararg val markerClass: KClass<out Annotation>
|
||||
)
|
||||
|
||||
@@ -10,5 +10,4 @@ import kotlin.internal.RequireKotlinVersionKind
|
||||
@kotlin.internal.InlineOnly
|
||||
@SinceKotlin("1.2")
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@RequireKotlin("1.2.30", level = DeprecationLevel.HIDDEN, versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
public inline fun <R> suspend(noinline block: suspend () -> R): suspend () -> R = block
|
||||
|
||||
Reference in New Issue
Block a user