mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
Solved or suppressed warnings
This commit is contained in:
1 parent
1c77e9aaad
commit
4c73407dc7
2 files changed
+7
-7
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user