Simplify NoAssignInBooleanExprs.ql

This commit is contained in:
Marcono1234
2020-06-18 15:16:09 +02:00
committed by GitHub
parent 03c6d7a7e5
commit 161ba92123

View File

@@ -17,10 +17,7 @@ import semmle.code.java.Statement
/** An expression that is used as a condition. */
class BooleanExpr extends Expr {
BooleanExpr() {
exists(IfStmt s | s.getCondition() = this) or
exists(ForStmt s | s.getCondition() = this) or
exists(WhileStmt s | s.getCondition() = this) or
exists(DoStmt s | s.getCondition() = this) or
exists(ConditionalStmt s | s.getCondition() = this) or
exists(ConditionalExpr s | s.getCondition() = this)
}
}