基本查询是否包含空if.

    1. if (error) { }

    QL语法查询方法:

    1. import java
    2. from IfStmt ifstmt, Block block
    3. where ifstmt.getThen() = block
    4. and block.getNumStmt() = 0
    5. select ifstmt, "This 'if' statement is redundant."