Fix leaking this test in 181 branch
This commit is contained in:
@@ -32,6 +32,7 @@ class LeakingThisInspection : AbstractKotlinInspection() {
|
|||||||
val context = klass.analyzeWithContent()
|
val context = klass.analyzeWithContent()
|
||||||
val leakingThese = context.getSliceContents(LEAKING_THIS)
|
val leakingThese = context.getSliceContents(LEAKING_THIS)
|
||||||
these@ for ((expression, leakingThisDescriptor) in leakingThese) {
|
these@ for ((expression, leakingThisDescriptor) in leakingThese) {
|
||||||
|
if (leakingThisDescriptor.classOrObject != klass) continue@these
|
||||||
val description = when (leakingThisDescriptor) {
|
val description = when (leakingThisDescriptor) {
|
||||||
is NonFinalClass ->
|
is NonFinalClass ->
|
||||||
if (expression is KtThisExpression)
|
if (expression is KtThisExpression)
|
||||||
|
|||||||
Reference in New Issue
Block a user