Skip to content

Commit 3971817

Browse files
committed
Fix: ensure is a switch block
1 parent cc68169 commit 3971817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ private module ControlFlowGraphImpl {
13001300
)
13011301
or
13021302
// Switch statements and expressions
1303-
exists(StmtParent switch |
1303+
exists(StmtParent switch | switch instanceof SwitchStmt or switch instanceof SwitchExpr |
13041304
exists(Expr switchExpr |
13051305
switchExpr = switch.(SwitchStmt).getExpr() or switchExpr = switch.(SwitchExpr).getExpr()
13061306
|

0 commit comments

Comments
 (0)