Fix NotNullMutableMap

This commit is contained in:
Him188 2020-09-09 21:42:38 +08:00
parent 8d115cd954
commit c622c1b4fe

View File

@ -45,11 +45,6 @@ public object PluginDataExtensions {
return super<MutableMap>.getOrDefault(key, defaultValue)
}
override fun put(key: K, value: V): V {
return delegate.put(key, value)
?: error("Internal error: delegate.put(key, value) returned null for NotNullMutableMap.put")
}
@Deprecated(
"putIfAbsent on NotNullMutableMap always does nothing.",
level = DeprecationLevel.WARNING,