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.
1 parent bc0724e commit f668110Copy full SHA for f668110
java/ql/lib/semmle/code/java/ControlFlowGraph.qll
@@ -781,10 +781,9 @@ private module ControlFlowGraphImpl {
781
getSwitchStatement(switch, i) = pred and
782
getSwitchStatement(switch, i + 1) = immediateSucc and
783
(
784
- succ = immediateSucc and
785
- not immediateSucc instanceof PatternCase
786
- or
787
- isNextNormalSwitchStmt(switch, immediateSucc, succ)
+ if immediateSucc instanceof PatternCase
+ then isNextNormalSwitchStmt(switch, immediateSucc, succ)
+ else succ = immediateSucc
788
)
789
790
}
0 commit comments