基本查询是否包含空if. if (error) { } QL语法查询方法: import javafrom IfStmt ifstmt, Block blockwhere ifstmt.getThen() = block and block.getNumStmt() = 0select ifstmt, "This 'if' statement is redundant."