Fix extra space added after new expression

This commit is contained in:
Alexey Andreev 2018-11-23 12:13:13 +03:00
parent d50189ea3a
commit 0376a46c06

View File

@ -511,9 +511,9 @@ public class AstWriter {
printList(node.getArguments());
writer.append(')');
if (node instanceof NewExpression) {
writer.ws();
NewExpression newExpr = (NewExpression) node;
if (newExpr.getInitializer() != null) {
writer.ws();
print(newExpr.getInitializer());
}
}