Skip to content

Commit 4b0a1cf

Browse files
committed
Java: Remove old interpretation.
1 parent 410c092 commit 4b0a1cf

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -380,58 +380,12 @@ string paramsString(Callable c) {
380380
"(" + concat(int i | | getNestedName(c.getParameterType(i).getErasure()), "," order by i) + ")"
381381
}
382382

383-
pragma[nomagic]
384-
private string paramsString_old(Callable c) {
385-
result =
386-
"(" + concat(int i | | c.getParameterType(i).getErasure().toString(), "," order by i) + ")"
387-
}
388-
389383
private string paramsStringQualified(Callable c) {
390384
result =
391385
"(" + concat(int i | | getQualifiedName(c.getParameterType(i).getErasure()), "," order by i) +
392386
")"
393387
}
394388

395-
predicate failMatch(
396-
string package, string type, boolean subtypes, string name, string signature, string sig2,
397-
string sigf
398-
) {
399-
elementSpec(package, type, subtypes, name, signature, _) and
400-
not exists(interpretElement0(package, type, subtypes, name, signature)) and
401-
exists(Callable c |
402-
c = interpretElement0_old(package, type, subtypes, name, signature) and
403-
sig2 = paramsString(c) and
404-
sigf = paramsStringQualified(c)
405-
)
406-
}
407-
408-
private Element interpretElement0_old(
409-
string package, string type, boolean subtypes, string name, string signature
410-
) {
411-
elementSpec(package, type, subtypes, name, signature, _) and
412-
(
413-
exists(Member m |
414-
(
415-
result = m
416-
or
417-
subtypes = true and result.(SrcMethod).overridesOrInstantiates+(m)
418-
) and
419-
m.hasQualifiedName(package, type, name)
420-
|
421-
signature = "" or
422-
m.(Callable).getSignature() = any(string nameprefix) + signature or
423-
paramsString_old(m) = signature
424-
)
425-
or
426-
exists(RefType t |
427-
t.hasQualifiedName(package, type) and
428-
(if subtypes = true then result.(SrcRefType).getASourceSupertype*() = t else result = t) and
429-
name = "" and
430-
signature = ""
431-
)
432-
)
433-
}
434-
435389
private Element interpretElement0(
436390
string package, string type, boolean subtypes, string name, string signature
437391
) {

0 commit comments

Comments
 (0)