LazyThreadSafetyMode.NONE is not safe to use in multithreading environment (EA-76205)
This commit is contained in:
@@ -27,7 +27,7 @@ class StarProjectionImpl(
|
||||
override fun getProjectionKind() = Variance.OUT_VARIANCE
|
||||
|
||||
// No synchronization here: there's no problem in accidentally computing this twice
|
||||
private val _type: KotlinType by lazy(LazyThreadSafetyMode.NONE) {
|
||||
private val _type: KotlinType by lazy(LazyThreadSafetyMode.PUBLICATION) {
|
||||
typeParameter.starProjectionType()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user