mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Merge pull request #6755 from alexet/alexet/cache-params-string
Java: Fix more performance issues with future versions of codeql.
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