Fix an Eclipse warning about an unchecked cast
This commit is contained in:
parent
fde65340d2
commit
c382934933
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue