diff options
-rw-r--r-- | doc/changelog.markdown | 3 | ||||
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown index 6a5a7da5..f4b71e4f 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -4,9 +4,10 @@ Lombok Changelog ### v1.16.19 "Edgy Guinea Pig" * v1.16.18 is the latest stable release of Project Lombok. * PLATFORM: Possible support for jdk9 in the new IntelliJ, Netbeans and for Gradle. +* BREAKING CHANGE: _lombok config_ key `lombok.addJavaxGeneratedAnnotation` now defaults to `false` instead of true. Oracle broke this annotation with the release of JDK9, necessitating this breaking change. * DEVELOPMENT: Compiling lombok on JDK1.9 is now possible. * BUGFIX: The generated hashCode would break the contract if `callSuper=true,of={}`. [Issue #1505](https://github.com/rzwitserloot/lombok/issues/1505) -* BREAKING CHANGE: _lombok config_ key `lombok.addJavaxGeneratedAnnotation` now defaults to `false` instead of true. Oracle broke this annotation with the release of JDK9, neccessitating this breaking change. +* BUGFIX: `delombok` no longer prints the synthetic outer-class parameter. [Issue #1521](https://github.com/rzwitserloot/lombok/issues/1521) ### v1.16.18 (July 3rd, 2017) * PLATFORM: JDK9 support much improved since v1.16.6; [Issue #985](https://github.com/rzwitserloot/lombok/issues/985) 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; |