We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7938bed commit 879052fCopy full SHA for 879052f
cosmic-binary-format/src/main/kotlin/xyz/xenondevs/cbf/Compound.kt
@@ -310,7 +310,7 @@ class Compound private constructor(
310
/**
311
* Gets the value under [key] as [type] [T] or null if it doesn't exist.
312
*/
313
- fun <T : Any> get(type: KType, key: String): T? {
+ fun <T : Any> get(type: KType, key: String): T? = lock.withLock {
314
return (entryMap[key] as CompoundEntry<T>?)?.get(type)
315
}
316
0 commit comments