New J2K: Add RemoveEmptyPrimaryConstructorIntention post processing
This commit is contained in:
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()
|
||||
|
||||
Reference in New Issue
Block a user