Suppress two deprecation warnings about an internal CGNode API
The supposedly deprecated function (CGNode.addTarget) really seems to be intended for internal use, not deprecated per se. We are an internal user here, so presumably it's OK for us to be using this API entry point.
This commit is contained in:
parent
6caecce3e7
commit
dfa8f15dac
|
@ -110,6 +110,7 @@ public class CHACallGraph extends BasicCallGraph<CHAContextInterpreter> {
|
|||
setInterpreter(new ContextInsensitiveCHAContextInterpreter());
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void init(Iterable<Entrypoint> entrypoints) throws CancelException {
|
||||
super.init();
|
||||
|
||||
|
@ -213,6 +214,7 @@ public class CHACallGraph extends BasicCallGraph<CHAContextInterpreter> {
|
|||
private int clinitPC = 0;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public CGNode findOrCreateNode(IMethod method, Context C) throws CancelException {
|
||||
assert C.equals(Everywhere.EVERYWHERE);
|
||||
assert !method.isAbstract();
|
||||
|
|
Loading…
Reference in New Issue