Added UsePropertyAccessSyntaxIntention as cleanup tool

This commit is contained in:
Valentin Kipyatkov
2015-08-18 15:22:50 +03:00
parent d734e2e665
commit c020189ad0
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1071,6 +1071,7 @@
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.UsePropertyAccessSyntaxInspection"
displayName="Use property access syntax"
groupName="Kotlin"
cleanupTool="true"
enabledByDefault="true"
level="WEAK WARNING"
/>
@@ -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<JetCallExpression>(UsePropertyAccessSyntaxIntention())
class UsePropertyAccessSyntaxInspection : IntentionBasedInspection<JetCallExpression>(UsePropertyAccessSyntaxIntention()), CleanupLocalInspectionTool
class UsePropertyAccessSyntaxIntention : JetSelfTargetingOffsetIndependentIntention<JetCallExpression>(javaClass(), "Use property access syntax") {
override fun isApplicableTo(element: JetCallExpression): Boolean {