From dfa8f15dac23fde26bd093bac12c8aed476cf825 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Fri, 17 Mar 2017 21:14:27 -0500 Subject: [PATCH] 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. --- .../src/com/ibm/wala/ipa/callgraph/cha/CHACallGraph.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/cha/CHACallGraph.java b/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/cha/CHACallGraph.java index 0156cd6af..98272f96c 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/cha/CHACallGraph.java +++ b/com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/cha/CHACallGraph.java @@ -110,6 +110,7 @@ public class CHACallGraph extends BasicCallGraph { setInterpreter(new ContextInsensitiveCHAContextInterpreter()); } + @SuppressWarnings("deprecation") public void init(Iterable entrypoints) throws CancelException { super.init(); @@ -213,6 +214,7 @@ public class CHACallGraph extends BasicCallGraph { private int clinitPC = 0; @Override + @SuppressWarnings("deprecation") public CGNode findOrCreateNode(IMethod method, Context C) throws CancelException { assert C.equals(Everywhere.EVERYWHERE); assert !method.isAbstract();