mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Fix NotNullMutableMap
This commit is contained in:
parent
8d115cd954
commit
c622c1b4fe
@ -45,11 +45,6 @@ public object PluginDataExtensions {
|
|||||||
return super<MutableMap>.getOrDefault(key, defaultValue)
|
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(
|
@Deprecated(
|
||||||
"putIfAbsent on NotNullMutableMap always does nothing.",
|
"putIfAbsent on NotNullMutableMap always does nothing.",
|
||||||
level = DeprecationLevel.WARNING,
|
level = DeprecationLevel.WARNING,
|
||||||
|
Loading…
Reference in New Issue
Block a user