From 645a0b06c76ce6fbad8d48afe0161b21d04046bb Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 27 Nov 2009 17:37:26 +0100 Subject: Removed empty () for annotation without parameters --- src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index 611dd417..785826f1 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -1358,9 +1358,11 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { try { print("@"); printExpr(tree.annotationType); - print("("); - printExprs(tree.args); - print(")"); + if (tree.args.nonEmpty()) { + print("("); + printExprs(tree.args); + print(")"); + } } catch (IOException e) { throw new UncheckedIOException(e); } -- cgit