From 2c50ebe8be3a0c37706ea6d6ea25c85e3ae97bdb 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 GitOrigin-RevId: 442ee7c3988fd541a900a6db65207b2d5198c7f9 --- plugins/kotlin/idea/src/META-INF/plugin.xml | 1 + .../kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/kotlin/idea/src/META-INF/plugin.xml b/plugins/kotlin/idea/src/META-INF/plugin.xml index b3bcee2fdd1f..55bb0227038b 100644 --- a/plugins/kotlin/idea/src/META-INF/plugin.xml +++ b/plugins/kotlin/idea/src/META-INF/plugin.xml @@ -1071,6 +1071,7 @@ diff --git a/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt b/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt index ee5654fea9e2..568d112adde1 100644 --- a/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/UsePropertyAccessSyntaxIntention.kt +++ b/plugins/kotlin/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 {