Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc0f29 commit 5511955Copy full SHA for 5511955
1 file changed
java/ql/lib/semmle/code/java/Statement.qll
@@ -461,7 +461,7 @@ class SwitchCase extends Stmt, @case {
461
* Gets this case's ordinal in its switch block.
462
*/
463
int getCaseIndex() {
464
- this = this.getSwitch().getCase(result) or this = this.getSwitchExpr().getCase(result)
+ this = any(SwitchStmt ss).getCase(result) or this = any(SwitchExpr se).getCase(result)
465
}
466
467
/**
0 commit comments