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 77b1721 commit 84ec453Copy full SHA for 84ec453
java/ql/lib/semmle/code/java/controlflow/Guards.qll
@@ -258,6 +258,8 @@ class Guard extends ExprParent {
258
259
private predicate switchCaseControls(SwitchCase sc, BasicBlock bb) {
260
exists(BasicBlock caseblock |
261
+ // Pattern cases are handled as condition blocks
262
+ not sc instanceof PatternCase and
263
caseblock.getFirstNode() = sc.getControlFlowNode() and
264
caseblock.bbDominates(bb) and
265
// Check we can't fall through from a previous block:
0 commit comments