The only new JCTree node in java7, JCTypeUnion, is now supported by delombok.

This commit is contained in:
Reinier Zwitserloot committed 2011-08-15 22:43:16 +02:00
1 parent a85023b919
commit 82b14a3089
1 file changed
+7 -2
@@ -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);
}