diff options
author | unknown <roels@.tis.local> | 2009-11-25 17:34:05 +0100 |
---|---|---|
committer | unknown <roels@.tis.local> | 2009-11-25 17:34:05 +0100 |
commit | 4c73407dc7f68fffd7d3166f6e01118d331d3a68 (patch) | |
tree | a208f7e74b3596e4f82fbc00e6675e96b3b59de1 /src/delombok/lombok | |
parent | 1c77e9aaad1554280f9620de799bd20ab29de6ea (diff) | |
download | lombok-4c73407dc7f68fffd7d3166f6e01118d331d3a68.tar.gz lombok-4c73407dc7f68fffd7d3166f6e01118d331d3a68.tar.bz2 lombok-4c73407dc7f68fffd7d3166f6e01118d331d3a68.zip |
Solved or suppressed warnings
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r-- | src/delombok/lombok/delombok/PrettyCommentsPrinter.java | 1 | ||||
-rw-r--r-- | src/delombok/lombok/delombok/PrettyPrinter.java | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java index 68e503a7..aa42f2b5 100644 --- a/src/delombok/lombok/delombok/PrettyCommentsPrinter.java +++ b/src/delombok/lombok/delombok/PrettyCommentsPrinter.java @@ -107,6 +107,7 @@ import com.sun.tools.javac.util.Name; * This code and its internal interfaces are subject to change or * deletion without notice.</b> */ +@SuppressWarnings("all") // Mainly sun code that has other warning settings public class PrettyCommentsPrinter extends JCTree.Visitor { private static final Method GET_TAG_METHOD; diff --git a/src/delombok/lombok/delombok/PrettyPrinter.java b/src/delombok/lombok/delombok/PrettyPrinter.java index 2da0d9f4..caea38c9 100644 --- a/src/delombok/lombok/delombok/PrettyPrinter.java +++ b/src/delombok/lombok/delombok/PrettyPrinter.java @@ -115,12 +115,13 @@ public class PrettyPrinter { return null; } node.accept(new SimpleTreeVisitor<Void, Void>(){ + @SuppressWarnings("incomplete-switch") @Override - protected Void defaultAction(Tree node, Void p) { - if (node == null) { + protected Void defaultAction(Tree treeNode, Void r) { + if (treeNode == null) { return null; } - JCTree tree = (JCTree)node; + JCTree tree = (JCTree)treeNode; Kind kind = tree.getKind(); System.out.print(kind.toString() + " " + tree.pos + " - " + tree.getEndPosition(cu.endPositions)); switch (kind) { @@ -167,10 +168,8 @@ public class PrettyPrinter { if (input instanceof CharBuffer) { return new PrettyDocCommentScanner(this, (CharBuffer)input, context.get(Comments.class)); } - else { - char[] array = input.toString().toCharArray(); - return newScanner(array, array.length); - } + char[] array = input.toString().toCharArray(); + return newScanner(array, array.length); } @Override |