We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 634b679 commit a023fd9Copy full SHA for a023fd9
java/ql/lib/semmle/code/java/ControlFlowGraph.qll
@@ -1395,7 +1395,7 @@ private module ControlFlowGraphImpl {
1395
switchExpr = switch.(SwitchStmt).getExpr() or switchExpr = switch.(SwitchExpr).getExpr()
1396
|
1397
// From the entry point control is transferred first to the expression...
1398
- n = switch.(AstNode).getCFGNode() and
+ (n.asStmt() = switch or n.asExpr() = switch) and
1399
result = first(switchExpr) and
1400
completion = NormalCompletion()
1401
or
0 commit comments