Annotate new API with @SinceKotlin in kotlin-runtime except reflection and type aliases.

This commit is contained in:
Ilya Gorbunov
2016-10-12 04:44:43 +03:00
parent a57321dea8
commit 2a7717214b
9 changed files with 23 additions and 17 deletions
@@ -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