Fix some nullable usages of not-null type parameters (KT-36770)

This commit is contained in:
Mikhail Glukhikh
2020-02-18 16:11:50 +03:00
parent a2e7b6d20e
commit 26f919df03
6 changed files with 7 additions and 7 deletions
@@ -27,7 +27,7 @@ class InlineCache {
val methodNodeById: SLRUMap<MethodId, SMAPAndMethodNode> = SLRUMap(60, 50)
}
inline fun <K, V> SLRUMap<K, V>.getOrPut(key: K, defaultValue: () -> V): V {
inline fun <K, V : Any> SLRUMap<K, V>.getOrPut(key: K, defaultValue: () -> V): V {
val value = get(key)
return if (value == null) {
val answer = defaultValue()