Skip to content

Commit d380ed1

Browse files
committed
Add back casts.
Appease the Eclipse JDT compiler.
1 parent de0b88f commit d380ed1

File tree

2 files changed

+4
-2
lines changed
  • com.ibm.wala.cast.python.jython3.test/test-source/com/ibm/wala/cast/python/jython3/test
  • com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/driver

2 files changed

+4
-2
lines changed

com.ibm.wala.cast.python.jython3.test/test-source/com/ibm/wala/cast/python/jython3/test/TestAnnotations.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public void testAnnotation1()
4242
CAstCallGraphUtil.dumpCG(
4343
(SSAContextInterpreter) builder.getContextInterpreter(), builder.getPointerAnalysis(), CG);
4444

45-
PointerAnalysis<InstanceKey> ptr = bb.getPointerAnalysis();
45+
@SuppressWarnings({"unchecked", "cast"})
46+
PointerAnalysis<InstanceKey> ptr = (PointerAnalysis<InstanceKey>) bb.getPointerAnalysis();
4647
DataDependenceOptions data = DataDependenceOptions.NO_BASE_NO_HEAP_NO_EXCEPTIONS;
4748
ControlDependenceOptions control = ControlDependenceOptions.NONE;
4849
SDG<InstanceKey> sdg = new SDG<InstanceKey>(CG, ptr, new PythonModRef(), data, control);

com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/driver/Driver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ protected <T> T runit(PythonAnalysisEngine<T> E, String... args)
8383

8484
System.err.println(CG);
8585

86-
PointerAnalysis<InstanceKey> PA = builder.getPointerAnalysis();
86+
@SuppressWarnings({"unchecked", "cast"})
87+
PointerAnalysis<InstanceKey> PA = (PointerAnalysis<InstanceKey>) builder.getPointerAnalysis();
8788

8889
CAstCallGraphUtil.AVOID_DUMP.set(false);
8990
CAstCallGraphUtil.dumpCG(

0 commit comments

Comments
 (0)