New J2K: Add RemoveEmptyPrimaryConstructorIntention post processing

This commit is contained in:
Ilya Kirillov
2019-01-11 15:44:58 +03:00
committed by Ilya Kirillov
parent d5a3b5644c
commit 23a42b36b4
@@ -140,7 +140,7 @@ object NewJ2KPostProcessingRegistrarImpl : J2KPostProcessingRegistrar {
registerGeneralInspectionBasedProcessing(LiftReturnOrAssignmentInspection()),
registerGeneralInspectionBasedProcessing(ReplaceCallWithBinaryOperatorInspection()),
registerGeneralInspectionBasedProcessing(MayBeConstantInspection()),
registerIntentionBasedProcessing(RemoveEmptyPrimaryConstructorIntention()),
registerDiagnosticBasedProcessing(Errors.PLATFORM_CLASS_MAPPED_TO_KOTLIN) { element: KtDotQualifiedExpression, diagnostic ->
val parent = element.parent as? KtImportDirective ?: return@registerDiagnosticBasedProcessing
parent.delete()