diff options
-rw-r--r-- | src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index fdc9ad5f..c3924159 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -1495,8 +1495,13 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { public void visitTree(JCTree tree) { try { - print("(UNKNOWN: " + tree + ")"); - println(); + if ("JCTypeUnion".equals(tree.getClass().getSimpleName())) { + print(tree.toString()); + return; + } else { + print("(UNKNOWN: " + tree + ")"); + println(); + } } catch (IOException e) { throw new UncheckedIOException(e); } |