Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b731b8d

Browse files
committed
Simplify PatternExpr definition
1 parent 3d980b1 commit b731b8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/ql/lib/semmle/code/java/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,7 @@ class PatternExpr extends Expr {
26332633
(
26342634
this.getParent() instanceof SwitchCase or
26352635
this.getParent() instanceof InstanceOfExpr or
2636-
this.getParent() instanceof PatternExpr
2636+
this.getParent() instanceof RecordPatternExpr
26372637
) and
26382638
(this instanceof LocalVariableDeclExpr or this instanceof RecordPatternExpr)
26392639
}

0 commit comments

Comments
 (0)