aboutsummaryrefslogtreecommitdiff
path: root/src/delombok
diff options
context:
space:
mode:
Diffstat (limited to 'src/delombok')
-rw-r--r--src/delombok/lombok/delombok/PrettyPrinter.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/PrettyPrinter.java b/src/delombok/lombok/delombok/PrettyPrinter.java
index 1a36ab7e..611055e0 100644
--- a/src/delombok/lombok/delombok/PrettyPrinter.java
+++ b/src/delombok/lombok/delombok/PrettyPrinter.java
@@ -822,7 +822,13 @@ public class PrettyPrinter extends JCTree.Visitor {
}
print(tree.clazz);
print("(");
- print(tree.args, ", ");
+ if (tree.args.nonEmpty()) {
+ if (tree.args.head instanceof JCIdent) {
+ print(tree.args, ", ");
+ } else {
+ print(tree.args.tail, ", ");
+ }
+ }
print(")");
if (tree.def != null) {
Name previousTypeName = currentTypeName;