Minor, replace fields with getters to avoid leaking "this" inspection

This commit is contained in:
Mikhail Zarechenskiy
2020-03-22 23:06:49 +03:00
parent e6d39ce785
commit 72ce4eb5ee
@@ -131,8 +131,8 @@ abstract class AbstractTypeApproximator(val ctx: TypeSystemInferenceExtensionCon
private val cacheForIncorporationConfigToSuperDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
private val cacheForIncorporationConfigToSubtypeDirection = ConcurrentHashMap<KotlinTypeMarker, ApproximationResult>()
private val referenceApproximateToSuperType = this::approximateSimpleToSuperType
private val referenceApproximateToSubType = this::approximateSimpleToSubType
private val referenceApproximateToSuperType get() = this::approximateSimpleToSuperType
private val referenceApproximateToSubType get() = this::approximateSimpleToSubType
companion object {
const val CACHE_FOR_INCORPORATION_MAX_SIZE = 500