If statements with empty then branch
Author: Semmle LGTM
import java
from IfStmt i
where i.getThen().(BlockStmt).getNumStmt() = 0
select iDescription
Finds 'if' statements where the 'then' branch is an empty block statement
import java
from IfStmt i
where i.getThen().(BlockStmt).getNumStmt() = 0
select iFinds 'if' statements where the 'then' branch is an empty block statement