From c2509216432b32b8b065fd6d1edae69008e61bd5 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sat, 16 Jan 2016 15:47:02 +0300 Subject: [PATCH] Deprecate getOrImplicitDefault to make it private later. --- libraries/stdlib/src/kotlin/collections/MapWithDefault.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt b/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt index cd71bab0312..1a5e4406842 100644 --- a/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt +++ b/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt @@ -12,6 +12,7 @@ import java.util.* * * @throws NoSuchElementException when the map doesn't contain value for the specified key and no implicit default was provided for that map. */ +@Deprecated("This function is used to support property delegation to map with defaults and will become internal soon.") public fun Map.getOrImplicitDefault(key: K): V { if (this is MapWithDefault) return this.getOrImplicitDefault(key) @@ -20,7 +21,7 @@ public fun Map.getOrImplicitDefault(key: K): V { } @kotlin.jvm.JvmName("getOrImplicitDefaultNullable") -@Deprecated("This function will change its behavior soon not to distinguish missing keys and keys mapped to nulls.") +@Deprecated("This function is used to support property delegation to map with defaults and will become internal soon.") public fun Map.getOrImplicitDefault(key: K): V { if (this is MapWithDefault) return this.getOrImplicitDefault(key)