Skip to content

Commit f917b9e

Browse files
authored
Merge pull request github#3608 from aschackmull/java/backport-switchexpr-cfg-fix
Java: Backport missing CFG edge fix for switch expressions
2 parents d5c6433 + a969dbc commit f917b9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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)