diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-12-04 21:41:03 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-12-04 21:50:10 +0100 |
commit | 602877e6942fd12852a7b03cd3e30e76d5440df6 (patch) | |
tree | c3e5478ed5d1b4e7a64e1debc03679e8dcf35c0a /src/delombok | |
parent | 0d6bfb1bbc39b7e68b200434cc7bb4fb5b50361c (diff) | |
download | lombok-602877e6942fd12852a7b03cd3e30e76d5440df6.tar.gz lombok-602877e6942fd12852a7b03cd3e30e76d5440df6.tar.bz2 lombok-602877e6942fd12852a7b03cd3e30e76d5440df6.zip |
delombok no longer prints generated outer-instance constructor parameters, fixes #1521
Diffstat (limited to 'src/delombok')
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 8 |
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; |