diff options
author | unknown <roels@.tis.local> | 2009-11-27 17:37:26 +0100 |
---|---|---|
committer | unknown <roels@.tis.local> | 2009-11-27 17:37:26 +0100 |
commit | 645a0b06c76ce6fbad8d48afe0161b21d04046bb (patch) | |
tree | ef56410f42939e04daab26dc83d91ffba08485f5 /src/delombok/lombok | |
parent | f2de0a28e70ff284fe6fac626c39df66f4bf3e89 (diff) | |
download | lombok-645a0b06c76ce6fbad8d48afe0161b21d04046bb.tar.gz lombok-645a0b06c76ce6fbad8d48afe0161b21d04046bb.tar.bz2 lombok-645a0b06c76ce6fbad8d48afe0161b21d04046bb.zip |
Removed empty () for annotation without parameters
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r-- | src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |