Files
codeql/java/ql/examples/constructor_call.ql
2019-07-26 17:47:11 +02:00

14 lines
282 B
Plaintext

/**
* @name Call to constructor
* @description Finds places where we call `new com.example.Class(...)`
* @tags call
* constructor
* new
*/
import java
from ClassInstanceExpr new
where new.getConstructedType().hasQualifiedName("com.example", "Class")
select new