aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-08-15 22:43:16 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-08-15 22:43:16 +0200
commit82b14a30893d509e055ed06d1576c5e16d397995 (patch)
tree50025a13889ba1d3d52045876c62baea4ce7bef2 /src/delombok/lombok
parenta85023b919928e2a57343639be1d69d15fd0c1d0 (diff)
downloadlombok-82b14a30893d509e055ed06d1576c5e16d397995.tar.gz
lombok-82b14a30893d509e055ed06d1576c5e16d397995.tar.bz2
lombok-82b14a30893d509e055ed06d1576c5e16d397995.zip
The only new JCTree node in java7, JCTypeUnion, is now supported by delombok.
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r--src/delombok/lombok/delombok/PrettyCommentsPrinter.java9
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);
}