Issue 629: have delombok respect the emptyLines derecotry inside enum bodies as well

This commit is contained in:
Roel Spilker committed 2014-01-19 21:15:16 +01:00
1 parent 560552ddb3
commit 2ab6cc809d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ Lombok Changelog
----------------
### v1.12.5 "Edgy Guinea Pig"
* Edge placeholder
* DETAIL: {Delombok} Inside enum bodies the delombok formatter didn't respect the emptyLines directive [Issue #529](https://code.google.com/p/projectlombok/issues/detail?id=629).
### v1.12.4 (January 15th, 2014)
* BUGFIX: v1.12.2's delombok turns all operator+assignments into just assignment. Fixed. [Issue #598](https://code.google.com/p/projectlombok/issues/detail?id=598)
@@ -591,7 +591,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
for (List<JCTree> l = stats; l.nonEmpty(); l = l.tail) {
x++;
if (!isEnumerator(l.head)) {
align();
if (!suppressAlignmentForEmptyLines(l.head)) align();
printStat(l.head);
println();
}