aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorunknown <roels@.tis.local>2009-11-27 17:37:26 +0100
committerunknown <roels@.tis.local>2009-11-27 17:37:26 +0100
commit645a0b06c76ce6fbad8d48afe0161b21d04046bb (patch)
treeef56410f42939e04daab26dc83d91ffba08485f5 /src/delombok/lombok
parentf2de0a28e70ff284fe6fac626c39df66f4bf3e89 (diff)
downloadlombok-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.java8
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);
}