Annotate new API with @SinceKotlin in kotlin-runtime except reflection and type aliases.
This commit is contained in:
@@ -303,6 +303,7 @@ public interface Map<K, out V> {
|
||||
*
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@PlatformDependent
|
||||
public fun getOrDefault(key: K, defaultValue: @UnsafeVariance V): V {
|
||||
// See default implementation in JDK sources
|
||||
@@ -368,6 +369,7 @@ public interface MutableMap<K, V> : Map<K, V> {
|
||||
*
|
||||
* @return true if entry was removed
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@PlatformDependent
|
||||
public fun remove(key: K, value: V): Boolean {
|
||||
// See default implementation in JDK sources
|
||||
|
||||
@@ -19,6 +19,7 @@ package kotlin.coroutines
|
||||
/**
|
||||
* Interface representing a continuation after a suspension point that returns value of type `P`
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
public interface Continuation<in P> {
|
||||
/**
|
||||
* Resumes the execution of the corresponding coroutine passing `data` as the return value of the last suspension point
|
||||
@@ -36,6 +37,7 @@ public interface Continuation<in P> {
|
||||
/**
|
||||
* Specifies that suspend extensions with a receiver based on corresponding controller class are allowed to be declared
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public annotation class AllowSuspendExtensions
|
||||
|
||||
@@ -22,6 +22,7 @@ private fun notSupportedError(): Nothing {
|
||||
throw kotlin.UnsupportedOperationException("Not supported for local property reference.")
|
||||
}
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
open class LocalVariableReference : PropertyReference0() {
|
||||
override fun getOwner(): KDeclarationContainer = notSupportedError()
|
||||
|
||||
@@ -29,6 +30,7 @@ open class LocalVariableReference : PropertyReference0() {
|
||||
|
||||
}
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
open class MutableLocalVariableReference : MutablePropertyReference0() {
|
||||
override fun getOwner(): KDeclarationContainer = notSupportedError()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user