Commit Graph

9 Commits

Author SHA1 Message Date
Tagir Valeev 3368f8e2d5 ParenthesesUtils#removeParensFromPolyadicExpression: check operand validity
As processing the previous operands may completely rewrite the whole polyadic expression, we have to stop if this happens
No need to find the replacement and process the tail: it's already processed in removeParensFromParenthesizedExpression
Fixes EA-141996 - PIEAE: CompositePsiElement.getContainingFile

GitOrigin-RevId: 64162346a612e2d95eec426419bef51d6c5d46a3
2019-04-28 17:44:13 +03:00
Tagir Valeev ee8d7915e8 SimplifyBooleanExpressionAction: do not warn on x = (true) 2018-07-05 13:25:28 +07:00
peter 932d1215d6 make 'remove loop' fix work for '(false)' and 'for' (IDEA-CR-20896) 2017-05-10 17:11:34 +02:00
peter 97c4d325e2 IDEA-151356 Simplifying known true/false conditions should remove unnecessary parentheses 2016-02-10 12:39:19 +01:00
anna b75d4c139f EA-45389 - assert: SimplifyBooleanExpressionFix$ExpressionVisitor.visitPolyadicExpression 2013-04-02 20:08:51 +02:00
anna 90c6a12e7f simplify boolean: xor (IDEA-92131) 2012-10-19 18:44:40 +02:00
anna ac9fe766c4 EA-31560 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2011-11-11 10:34:56 +01:00
anna 7b0692acbc simplifying of polyadic expressions:IDEA-76076 2011-10-28 13:45:42 +02:00
Alexey Kudravtsev 2718da9fc7 more java tests moved to community 2010-06-25 12:46:40 +04:00