Use intention to simplify for in j2k

#KT-7157 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-01-13 15:18:30 +03:00
parent ea3ba6f534
commit 128440b16f
5 changed files with 42 additions and 0 deletions
@@ -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)