Fix an Eclipse warning about an unchecked cast

This commit is contained in:
Ben Liblit 2017-03-15 11:20:40 -05:00
parent fde65340d2
commit c382934933
2 changed files with 3 additions and 3 deletions

View File

@ -136,8 +136,8 @@ public abstract class BasicCallGraph<T> extends AbstractNumberedGraph<CGNode> im
return result;
}
protected NodeImpl getNode(Key K) {
return (NodeImpl) nodes.get(K);
protected CGNode getNode(Key K) {
return nodes.get(K);
}
@Override

View File

@ -121,7 +121,7 @@ public class ExplicitCallGraph extends BasicCallGraph<SSAContextInterpreter> imp
throw new IllegalArgumentException("null context");
}
Key k = new Key(method, context);
NodeImpl result = getNode(k);
CGNode result = getNode(k);
if (result == null) {
if (maxNumberOfNodes == -1 || getNumberOfNodes() < maxNumberOfNodes) {
result = makeNode(method, context);