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 f668110 commit c0874abCopy full SHA for c0874ab
java/ql/lib/semmle/code/java/Expr.qll
@@ -1684,7 +1684,7 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
1684
exists(InstanceOfExpr ioe | this.getParent() = ioe | result.isNthChildOf(ioe, 1))
1685
or
1686
exists(PatternCase pc, int index, int typeAccessIdx | this.isNthChildOf(pc, index) |
1687
- (if index = 0 then typeAccessIdx = -4 else typeAccessIdx = (-3 - index)) and
+ (if index = 0 then typeAccessIdx = -2 else typeAccessIdx = (-3 - index)) and
1688
result.isNthChildOf(pc, typeAccessIdx)
1689
)
1690
0 commit comments