Skip to content

Commit d99f2ff

Browse files
committed
Remove redundant casts.
1 parent ccb9d1a commit d99f2ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.ibm.wala.cast.python/source/com/ibm/wala/cast/python/ipa/summaries/BuiltinFunctions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public BuiltinFunctions(IClassHierarchy cha) {
3838

3939
private static IMethod typeSummary(IClass cls, String name, TypeReference type) {
4040
PythonSummary S = typeSummary(cls, builtinFunction(name), type);
41-
return new PythonSummarizedFunction((MethodReference) S.getMethod(), S, cls);
41+
return new PythonSummarizedFunction(S.getMethod(), S, cls);
4242
}
4343

4444
private static PythonSummary typeSummary(
@@ -55,7 +55,7 @@ private static PythonSummary typeSummary(
5555

5656
private static IMethod argSummary(IClass cls, String name, int arg) {
5757
PythonSummary S = argSummary(cls, builtinFunction(name), arg);
58-
return new PythonSummarizedFunction((MethodReference) S.getMethod(), S, cls);
58+
return new PythonSummarizedFunction(S.getMethod(), S, cls);
5959
}
6060

6161
private static PythonSummary argSummary(IClass cls, TypeReference type, int arg) {
@@ -70,7 +70,7 @@ private static PythonSummary argSummary(IClass cls, TypeReference type, int arg)
7070

7171
private static IMethod noopSummary(IClass cls, String name) {
7272
PythonSummary S = noopSummary(cls, builtinFunction(name));
73-
return new PythonSummarizedFunction((MethodReference) S.getMethod(), S, cls);
73+
return new PythonSummarizedFunction(S.getMethod(), S, cls);
7474
}
7575

7676
private static PythonSummary noopSummary(IClass cls, TypeReference type) {

0 commit comments

Comments
 (0)