Use intention to simplify for in j2k
#KT-7157 Fixed
This commit is contained in:
@@ -65,6 +65,7 @@ object J2KPostProcessingRegistrar {
|
||||
registerIntentionBasedProcessing(ObjectLiteralToLambdaIntention()) { applyTo(it) }
|
||||
registerIntentionBasedProcessing(AnonymousFunctionToLambdaIntention()) { applyTo(it) }
|
||||
registerIntentionBasedProcessing(RemoveUnnecessaryParenthesesIntention()) { applyTo(it) }
|
||||
registerIntentionBasedProcessing(SimplifyForIntention()) { applyTo(it) }
|
||||
|
||||
registerDiagnosticBasedProcessing<KtBinaryExpressionWithTypeRHS>(Errors.USELESS_CAST) { element, diagnostic ->
|
||||
val expression = RemoveUselessCastFix.invoke(element)
|
||||
|
||||
Reference in New Issue
Block a user