Minor, replace fields with getters to avoid leaking "this" inspection
This commit is contained in:
@@ -131,8 +131,8 @@ abstract class AbstractTypeApproximator(val ctx: TypeSystemInferenceExtensionCon
|
|||||||
private val cacheForIncorporationConfigToSuperDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
|
private val cacheForIncorporationConfigToSuperDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
|
||||||
private val cacheForIncorporationConfigToSubtypeDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
|
private val cacheForIncorporationConfigToSubtypeDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
|
||||||
|
|
||||||
private val referenceApproximateToSuperType = this::approximateSimpleToSuperType
|
private val referenceApproximateToSuperType get() = this::approximateSimpleToSuperType
|
||||||
private val referenceApproximateToSubType = this::approximateSimpleToSubType
|
private val referenceApproximateToSubType get() = this::approximateSimpleToSubType
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val CACHE_FOR_INCORPORATION_MAX_SIZE = 500
|
const val CACHE_FOR_INCORPORATION_MAX_SIZE = 500
|
||||||
|
|||||||
Reference in New Issue
Block a user