Code cleanup: get rid of unnecessary !! / as, fake warning comments and issues

This commit is contained in:
Mikhail Glukhikh
2015-12-14 12:21:03 +03:00
parent 4ffd60cf52
commit 233e8e58e8
12 changed files with 14 additions and 7 deletions
@@ -110,7 +110,7 @@ public operator fun <@kotlin.internal.OnlyInputTypes K, V> Map<out K, V>.get(key
*/
@Suppress("NOTHING_TO_INLINE")
@Deprecated("Map and key have incompatible types. Upcast key to Any? if you're sure.", ReplaceWith("get(key as Any?)"))
public inline fun <K, V> Map<K, V>.getRaw(key: Any?): V? = get(key as Any?)
public inline fun <K, V> Map<K, V>.getRaw(key: Any?): V? = get(key)
/**
* Returns `true` if the map contains the specified [key].