CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds empty block statements

import java

from Block blk
where blk.getNumStmt() = 0
select blk