Files
codeql/java/ql/examples/snippets/method_call.ql
2023-10-24 10:30:26 +01:00

17 lines
359 B
Plaintext

/**
* @id java/examples/method-call
* @name Call to method
* @description Finds calls to com.example.Class.methodName
* @tags call
* method
*/
import java
from MethodCall call, Method method
where
call.getMethod() = method and
method.hasName("methodName") and
method.getDeclaringType().hasQualifiedName("com.example", "Class")
select call