mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
410 B
Plaintext
14 lines
410 B
Plaintext
import java
|
|
|
|
class InterestingMethod extends Method {
|
|
InterestingMethod() { this.getDeclaringType().getName() = "TakesArrayList" }
|
|
}
|
|
|
|
query predicate broken(string methodName) {
|
|
methodName = any(InterestingMethod m).getName() and
|
|
count(Type t, InterestingMethod m | methodName = m.getName() and t = m.getAParamType() | t) != 1
|
|
}
|
|
|
|
from InterestingMethod m
|
|
select m.getName(), m.getAParamType().toString()
|