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 3d980b1 commit b731b8dCopy full SHA for b731b8d
1 file changed
java/ql/lib/semmle/code/java/Expr.qll
@@ -2633,7 +2633,7 @@ class PatternExpr extends Expr {
2633
(
2634
this.getParent() instanceof SwitchCase or
2635
this.getParent() instanceof InstanceOfExpr or
2636
- this.getParent() instanceof PatternExpr
+ this.getParent() instanceof RecordPatternExpr
2637
) and
2638
(this instanceof LocalVariableDeclExpr or this instanceof RecordPatternExpr)
2639
}
0 commit comments