Skip to content

Commit a969dbc

Browse files
committed
Java: Fix missing CFG edge for switch expressions.
1 parent 9afbd5b commit a969dbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ private module ControlFlowGraphImpl {
578578
n instanceof Stmt and
579579
not n instanceof PostOrderNode and
580580
not n instanceof SynchronizedStmt
581+
or
582+
result = n and n instanceof SwitchExpr
581583
}
582584

583585
/**

0 commit comments

Comments
 (0)