[stdlib] Annotated new API with SinceKotlin(2.0) where required KT-64904

This commit is contained in:
Ilya Gorbunov
2024-03-08 17:25:31 +01:00
committed by Space Team
parent 1c4023fda5
commit 5afb2c5e4b
8 changed files with 32 additions and 34 deletions
@@ -144,5 +144,5 @@ public annotation class ExperimentalJsReflectionCreateInstance
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@MustBeDocumented
@SinceKotlin("1.9")
@SinceKotlin("2.0")
public annotation class ExperimentalJsCollectionsApi
@@ -21,8 +21,7 @@ public expect abstract class AbstractMutableList<E> : MutableList<E> {
* to provide fail-fast behavior when a concurrent modification is detected during iteration.
* [ConcurrentModificationException] will be thrown in this case.
*/
// TODO: Should be @SinceKotlin("2.0"), see KT-64904
@SinceKotlin("1.9")
@SinceKotlin("2.0")
protected var modCount: Int
protected constructor()
@@ -30,8 +29,7 @@ public expect abstract class AbstractMutableList<E> : MutableList<E> {
/**
* Removes the range of elements from this list starting from [fromIndex] and ending with but not including [toIndex].
*/
// TODO: Should be @SinceKotlin("2.0"), see KT-64904
@SinceKotlin("1.9")
@SinceKotlin("2.0")
protected open fun removeRange(fromIndex: Int, toIndex: Int): Unit
// From List