diff options
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 2 | ||||
-rw-r--r-- | test/transform/resource/before/ValLambda.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/delombok/lombok/delombok/PrettyPrinter.java b/src/delombok/lombok/delombok/PrettyPrinter.java index 0b248c52..52cb1e42 100644 --- a/src/delombok/lombok/delombok/PrettyPrinter.java +++ b/src/delombok/lombok/delombok/PrettyPrinter.java @@ -372,6 +372,8 @@ public class PrettyPrinter extends JCTree.Visitor { break; } + if (onNewLine && !aligned && comment.start != StartConnection.START_OF_LINE) needsAlign = true; + print(comment.content); switch (comment.end) { diff --git a/test/transform/resource/before/ValLambda.java b/test/transform/resource/before/ValLambda.java index ed843ed7..51c4fba1 100644 --- a/test/transform/resource/before/ValLambda.java +++ b/test/transform/resource/before/ValLambda.java @@ -14,7 +14,7 @@ class ValLambda { } // public void castLubLambda() { -// Runnable foo = (Runnable)((System.currentTimeMillis() > 0) ? ()-> {} : System.out::println); -// lombok.val foo = (Runnable)((System.currentTimeMillis() > 0) ? ()-> {} : System.out::println); +// Runnable foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println); +// lombok.val foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println); // } } |