From 81ba6ee5f5668f4634253f7446de9c93190455b0 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 1 May 2014 21:04:47 +0200 Subject: javac does not understand @SuppressWarnings("all") --- src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index a0a11d6c..36413332 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -1587,6 +1587,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { private void visitLambda0(JCTree tree) { try { print("("); + @SuppressWarnings("unchecked") List params = (List) readTreeList(tree, "params"); boolean explicit = true; try { @@ -1617,6 +1618,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { } } + @SuppressWarnings("unchecked") private List readTreeList(JCTree tree, String fieldName) throws IOException { try { return (List) readObject(tree, fieldName); @@ -1625,6 +1627,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { } } + @SuppressWarnings("unchecked") private List readExpressionList(JCTree tree, String fieldName) throws IOException { try { return (List) readObject(tree, fieldName); @@ -1633,6 +1636,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor { } } + @SuppressWarnings("unchecked") private Object readObject(JCTree tree, String fieldName) throws Exception { try { return tree.getClass().getDeclaredField(fieldName).get(tree); -- cgit