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

13 lines
198 B
Plaintext

/**
* @name Singleton blocks
* @description Finds block statements containing a single statement
* @tags block
* statement
*/
import java
from Block b
where b.getNumStmt() = 1
select b