We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae2ddc commit 6ecf551Copy full SHA for 6ecf551
src/main/java/org/jd/core/v1/service/fragmenter/javasyntaxtojavafragment/visitor/ExpressionVisitor.java
@@ -571,9 +571,7 @@ public void visit(TernaryOperatorExpression expression) {
571
572
if (be1.isFalse() && be2.isTrue()) {
573
tokens.add(TextToken.EXCLAMATION);
574
- tokens.add(TextToken.LEFTROUNDBRACKET);
575
- expression.getCondition().accept(this);
576
- tokens.add(TextToken.RIGHTROUNDBRACKET);
+ printTernaryOperatorExpression(expression.getCondition());
577
return;
578
}
579
0 commit comments