aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/delombok/lombok/delombok/PrettyCommentsPrinter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
index 2f47ccf6..8569db5b 100644
--- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
+++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java
@@ -428,7 +428,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
*/
public void printStat(JCTree tree) throws IOException {
if (isEmptyStat(tree)) {
- printEmptyStat();
+ // printEmptyStat(); // -- starting in java 7, these get lost, so to be consistent, we never print them.
} else {
printExpr(tree, TreeInfo.notExpression);
}
@@ -568,7 +568,9 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
}
print(";");
println();
+ int x = 0;
for (List<JCTree> l = stats; l.nonEmpty(); l = l.tail) {
+ x++;
if (!isEnumerator(l.head)) {
align();
printStat(l.head);