Remove empty primary constructor: reformat
This commit is contained in:
+3
-3
@@ -27,11 +27,11 @@ import org.jetbrains.kotlin.psi.psiUtil.containingClass
|
|||||||
class RemoveEmptyPrimaryConstructorInspection : IntentionBasedInspection<KtPrimaryConstructor>(
|
class RemoveEmptyPrimaryConstructorInspection : IntentionBasedInspection<KtPrimaryConstructor>(
|
||||||
RemoveEmptyPrimaryConstructorIntention::class
|
RemoveEmptyPrimaryConstructorIntention::class
|
||||||
), CleanupLocalInspectionTool {
|
), CleanupLocalInspectionTool {
|
||||||
override fun problemHighlightType(element: KtPrimaryConstructor): ProblemHighlightType =
|
override fun problemHighlightType(element: KtPrimaryConstructor): ProblemHighlightType = ProblemHighlightType.LIKE_UNUSED_SYMBOL
|
||||||
ProblemHighlightType.LIKE_UNUSED_SYMBOL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class RemoveEmptyPrimaryConstructorIntention : SelfTargetingOffsetIndependentIntention<KtPrimaryConstructor>(KtPrimaryConstructor::class.java, "Remove empty primary constructor") {
|
class RemoveEmptyPrimaryConstructorIntention :
|
||||||
|
SelfTargetingOffsetIndependentIntention<KtPrimaryConstructor>(KtPrimaryConstructor::class.java, "Remove empty primary constructor") {
|
||||||
|
|
||||||
override fun applyTo(element: KtPrimaryConstructor, editor: Editor?) = element.delete()
|
override fun applyTo(element: KtPrimaryConstructor, editor: Editor?) = element.delete()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user