Singleton blocks

Author: Semmle LGTM

import java

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

Description

Finds block statements containing a single statement