Files
codeql/java/ql/test-kotlin1/library-tests/reflection/checkParameterCounts.ql
2023-11-21 15:28:12 +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