Skip to content

Commit

Permalink
Remove @ExperimentalSubclassOptIn from SubclassOptInRequired
Browse files Browse the repository at this point in the history
In Kotlin 2.1, SubclassOptInRequired is positioned as stable. The
ExperimentalSubclassOptIn annotation should be removed from
SubclassOptInRequired before the 2.1 release.

^KT-71222 Fixed
  • Loading branch information
BlondeHex authored and qodana-bot committed Sep 20, 2024
1 parent 57f45ea commit f414e45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/stdlib/src/kotlin/annotations/OptIn.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ public annotation class ExperimentalSubclassOptIn
* @property markerClass specifies marker annotation that require explicit opt-in.
* @see RequiresOptIn for a detailed description of opt-in semantics and propagation rules.
*/
@Suppress("NEWER_VERSION_IN_SINCE_KOTLIN")
@Target(CLASS)
@Retention(BINARY)
@SinceKotlin("1.8")
@ExperimentalSubclassOptIn
@SinceKotlin("2.1")
@WasExperimental(ExperimentalSubclassOptIn::class)
public annotation class SubclassOptInRequired(
val markerClass: KClass<out Annotation>
)

0 comments on commit f414e45

Please sign in to comment.