Files
codeql/java/ql/test-kotlin2/library-tests/reflection/checkParameterCounts.ql
2023-11-17 14:07:13 +00:00

10 lines
338 B
Plaintext

import java
from Call call, Callable callable, int argCount, int paramCount
where
call.getCallee() = callable and
argCount = count(call.getAnArgument()) and
paramCount = count(callable.getAParameter()) and
argCount != paramCount
select "Call should have " + paramCount + " arguments but actually has " + argCount, call, callable