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 b6622d2 commit a06ac42Copy full SHA for a06ac42
1 file changed
java/ql/lib/semmle/code/java/PrintAst.qll
@@ -423,7 +423,8 @@ private class SingleLocalVarDeclParent extends ExprOrStmt {
423
SingleLocalVarDeclParent() {
424
this instanceof EnhancedForStmt or
425
this instanceof CatchClause or
426
- this.(InstanceOfExpr).isPattern()
+ this.(InstanceOfExpr).isPattern() or
427
+ this instanceof PatternCase
428
}
429
430
/** Gets the variable declaration that this element contains */
0 commit comments