8186873: Possible dead code \"com.sun.tools.javac.tree.TreeInfo.isAnonymousDiamond()\" which was added in 9
Removing unused method. Reviewed-by: mcimadamore
This commit is contained in:
parent
2e31cc7ee1
commit
6f27933eb4
@ -198,18 +198,6 @@ public class TreeInfo {
|
||||
}
|
||||
}
|
||||
|
||||
/** Return true if the given tree represents a type elided anonymous class instance creation. */
|
||||
public static boolean isAnonymousDiamond(JCTree tree) {
|
||||
switch(tree.getTag()) {
|
||||
case NEWCLASS: {
|
||||
JCNewClass nc = (JCNewClass)tree;
|
||||
return nc.def != null && isDiamond(nc.clazz);
|
||||
}
|
||||
case ANNOTATED_TYPE: return isAnonymousDiamond(((JCAnnotatedType)tree).underlyingType);
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isEnumInit(JCTree tree) {
|
||||
switch (tree.getTag()) {
|
||||
case VARDEF:
|
||||
|
Loading…
Reference in New Issue
Block a user