changeset 52864 | e78890a4c25f |
parent 51563 | de411d537aae |
child 55306 | ea43db53de91 |
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java Wed Dec 05 17:50:14 2018 -0800 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java Wed Dec 05 11:31:20 2018 -0800 @@ -1525,9 +1525,11 @@ try { print("@"); printExpr(tree.annotationType); - print("("); - printExprs(tree.args); - print(")"); + if (!tree.args.isEmpty()) { + print("("); + printExprs(tree.args); + print(")"); + } } catch (IOException e) { throw new UncheckedIOException(e); }