mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix java perf 1
This commit is contained in:
@@ -50,6 +50,7 @@ private predicate whitelist(string name) { name = "visit" }
|
||||
* Method `m` has name `name`, number of parameters `numParams`
|
||||
* and is declared in `t` or inherited from a supertype of `t`.
|
||||
*/
|
||||
pragma[nomagic]
|
||||
private predicate candidateMethod(RefType t, Method m, string name, int numParam) {
|
||||
exists(Method n | n.getSourceDeclaration() = m | t.inherits(n)) and
|
||||
m.getName() = name and
|
||||
|
||||
Reference in New Issue
Block a user