We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc68169 commit 3971817Copy full SHA for 3971817
java/ql/lib/semmle/code/java/ControlFlowGraph.qll
@@ -1300,7 +1300,7 @@ private module ControlFlowGraphImpl {
1300
)
1301
or
1302
// Switch statements and expressions
1303
- exists(StmtParent switch |
+ exists(StmtParent switch | switch instanceof SwitchStmt or switch instanceof SwitchExpr |
1304
exists(Expr switchExpr |
1305
switchExpr = switch.(SwitchStmt).getExpr() or switchExpr = switch.(SwitchExpr).getExpr()
1306
|
0 commit comments