From c4ef95dbf7a59877ac2f96b0a497763f131038e3 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 18 Jan 2018 16:31:37 +0300 Subject: [PATCH] Remove empty primary constructor: reformat --- .../intentions/RemoveEmptyPrimaryConstructorIntention.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveEmptyPrimaryConstructorIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveEmptyPrimaryConstructorIntention.kt index b25bf61aa8f..0eec00b566b 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveEmptyPrimaryConstructorIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveEmptyPrimaryConstructorIntention.kt @@ -25,13 +25,13 @@ import org.jetbrains.kotlin.psi.KtPrimaryConstructor import org.jetbrains.kotlin.psi.psiUtil.containingClass class RemoveEmptyPrimaryConstructorInspection : IntentionBasedInspection( - RemoveEmptyPrimaryConstructorIntention::class + RemoveEmptyPrimaryConstructorIntention::class ), CleanupLocalInspectionTool { - override fun problemHighlightType(element: KtPrimaryConstructor): ProblemHighlightType = - ProblemHighlightType.LIKE_UNUSED_SYMBOL + override fun problemHighlightType(element: KtPrimaryConstructor): ProblemHighlightType = ProblemHighlightType.LIKE_UNUSED_SYMBOL } -class RemoveEmptyPrimaryConstructorIntention : SelfTargetingOffsetIndependentIntention(KtPrimaryConstructor::class.java, "Remove empty primary constructor") { +class RemoveEmptyPrimaryConstructorIntention : + SelfTargetingOffsetIndependentIntention(KtPrimaryConstructor::class.java, "Remove empty primary constructor") { override fun applyTo(element: KtPrimaryConstructor, editor: Editor?) = element.delete()