Commit Graph

5 Commits

Author SHA1 Message Date
Tagir Valeev c016d59b0c EmptyStatementBodyInspection: delete body on empty foreach 2019-01-21 16:40:02 +07:00
Tagir Valeev 5d4a0b8197 Basic support of switch expressions in StatementExtractor/SideEffectChecker
Fixes IDEA-204138 Exception in "statement with empty body" inspection with switch expression
Fixes EA-133610 - REWA: StatementExtractor.createNode
2018-12-13 17:42:28 +07:00
Tagir Valeev 3b96a595b9 DeleteSideEffectsAwareFix: handle comments 2018-02-20 17:06:53 +07:00
Tagir Valeev a07277260c DeleteSideEffectsAwareFix: do not remove message for non-expression-statement
The fix is still useful if invoked for if condition/switch expression/etc. Fixes IDEA-180372.
2017-10-11 15:51:21 +07:00
Tagir Valeev 36999ebfc4 IDEA-179128 Quick-fix for "'if' statement has empty body" 2017-09-19 13:04:21 +07:00