Skip to content

Commit dea8dde

Browse files
committed
Java: Improve performance of confusing overloading query.
1 parent 49f8f46 commit dea8dde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/src/Violations of Best Practice/Naming Conventions/ConfusingOverloading.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ private predicate whitelist(string name) { name = "visit" }
5050
* Method `m` has name `name`, number of parameters `numParams`
5151
* and is declared in `t` or inherited from a supertype of `t`.
5252
*/
53+
pragma[nomagic]
5354
private predicate candidateMethod(RefType t, Method m, string name, int numParam) {
5455
exists(Method n | n.getSourceDeclaration() = m | t.inherits(n)) and
5556
m.getName() = name and

0 commit comments

Comments
 (0)