We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac89559 + 161ba92 commit 71665a0Copy full SHA for 71665a0
java/ql/src/Likely Bugs/Comparison/NoAssignInBooleanExprs.ql
@@ -17,10 +17,7 @@ import semmle.code.java.Statement
17
/** An expression that is used as a condition. */
18
class BooleanExpr extends Expr {
19
BooleanExpr() {
20
- exists(IfStmt s | s.getCondition() = this) or
21
- exists(ForStmt s | s.getCondition() = this) or
22
- exists(WhileStmt s | s.getCondition() = this) or
23
- exists(DoStmt s | s.getCondition() = this) or
+ exists(ConditionalStmt s | s.getCondition() = this) or
24
exists(ConditionalExpr s | s.getCondition() = this)
25
}
26
0 commit comments