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:
Anders Schack-Mulligen
2021-10-01 12:54:53 +02:00
committed by GitHub
3 changed files with 24 additions and 12 deletions

View File

@@ -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