delombok no longer prints generated outer-instance constructor parameters, fixes #1521

This commit is contained in:
Roel Spilker committed 2017-12-04 21:50:10 +01:00
1 parent 0d6bfb1bbc
commit 602877e694
2 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -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)
@@ -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;