KT-55610 Deprecate k.j.Volatile annotation in Common and JS
Use k.c.Volatile in common AbstractMap instead
This commit is contained in:
committed by
Space Team
parent
b8da3e69ce
commit
912b65060e
@@ -99,7 +99,7 @@ public abstract class AbstractMap<K, out V> protected constructor() : Map<K, V>
|
||||
return _keys!!
|
||||
}
|
||||
|
||||
@kotlin.jvm.Volatile
|
||||
@kotlin.concurrent.Volatile
|
||||
private var _keys: Set<K>? = null
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ public abstract class AbstractMap<K, out V> protected constructor() : Map<K, V>
|
||||
return _values!!
|
||||
}
|
||||
|
||||
@kotlin.jvm.Volatile
|
||||
@kotlin.concurrent.Volatile
|
||||
private var _values: Collection<V>? = null
|
||||
|
||||
private fun implFindEntry(key: K): Map.Entry<K, V>? = entries.firstOrNull { it.key == key }
|
||||
|
||||
Reference in New Issue
Block a user