CodeQL queries 1.23

Skip to end of metadata
Go to start of metadata

Finds block statements containing a single statement

import java

from Block b
where b.getNumStmt() = 1
select b