mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
don't insert unneeded parentheses on "invert if"
This commit is contained in:
@@ -54,7 +54,7 @@ public class CodeInsightServicesUtil {
|
||||
op.replace(inverted);
|
||||
}
|
||||
}
|
||||
if (tokenType == JavaTokenType.ANDAND && booleanExpression.getParent() instanceof PsiExpression) {
|
||||
if (tokenType == JavaTokenType.ANDAND && booleanExpression.getParent() instanceof PsiPolyadicExpression) {
|
||||
final PsiParenthesizedExpression parth = (PsiParenthesizedExpression)factory.createExpressionFromText("(a)", expression);
|
||||
parth.getExpression().replace(expression);
|
||||
return parth;
|
||||
|
||||
Reference in New Issue
Block a user