mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
bugfix for comments near start of nodes (it would throw off alignment in pretty printer).
This commit is contained in:
1 parent
3f0a13501f
commit
dc5e1b9b35
2 files changed
+4
-2
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user