From c020189ad0613a732c99123faa69ff9fbb72e13d Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Tue, 18 Aug 2015 15:22:50 +0300 Subject: [PATCH] Added UsePropertyAccessSyntaxIntention as cleanup tool --- idea/src/META-INF/plugin.xml | 1 + .../kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/idea/src/META-INF/plugin.xml b/idea/src/META-INF/plugin.xml index b3bcee2fdd1..55bb0227038 100644 --- a/idea/src/META-INF/plugin.xml +++ b/idea/src/META-INF/plugin.xml @@ -1071,6 +1071,7 @@ diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt index ee5654fea9e..568d112adde 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt @@ -16,6 +16,7 @@ package org.jetbrains.kotlin.idea.intentions +import com.intellij.codeInspection.CleanupLocalInspectionTool import com.intellij.openapi.editor.Editor import org.jetbrains.kotlin.descriptors.CallableDescriptor import org.jetbrains.kotlin.descriptors.FunctionDescriptor @@ -53,7 +54,7 @@ import org.jetbrains.kotlin.synthetic.SyntheticJavaPropertyDescriptor import org.jetbrains.kotlin.types.JetType import org.jetbrains.kotlin.types.TypeUtils -class UsePropertyAccessSyntaxInspection : IntentionBasedInspection(UsePropertyAccessSyntaxIntention()) +class UsePropertyAccessSyntaxInspection : IntentionBasedInspection(UsePropertyAccessSyntaxIntention()), CleanupLocalInspectionTool class UsePropertyAccessSyntaxIntention : JetSelfTargetingOffsetIndependentIntention(javaClass(), "Use property access syntax") { override fun isApplicableTo(element: JetCallExpression): Boolean {