File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java/ql/lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,13 @@ predicate simpleAstFlowStep(Expr e1, Expr e2) {
194
194
// In the following three cases only record patterns need this flow edge, leading from the bound instanceof
195
195
// or switch tested expression to a record pattern that will read its fields. Simple binding patterns are
196
196
// handled via VariableAssign.getSource instead.
197
- exists ( SwitchExpr se | e1 = se .getExpr ( ) and e2 = se .getACase ( ) .( PatternCase ) .getPattern ( ) .asRecordPattern ( ) )
197
+ exists ( SwitchExpr se |
198
+ e1 = se .getExpr ( ) and e2 = se .getACase ( ) .( PatternCase ) .getPattern ( ) .asRecordPattern ( )
199
+ )
198
200
or
199
- exists ( SwitchStmt ss | e1 = ss .getExpr ( ) and e2 = ss .getACase ( ) .( PatternCase ) .getPattern ( ) .asRecordPattern ( ) )
201
+ exists ( SwitchStmt ss |
202
+ e1 = ss .getExpr ( ) and e2 = ss .getACase ( ) .( PatternCase ) .getPattern ( ) .asRecordPattern ( )
203
+ )
200
204
or
201
205
exists ( InstanceOfExpr ioe | e1 = ioe .getExpr ( ) and e2 = ioe .getPattern ( ) .asRecordPattern ( ) )
202
206
}
You can’t perform that action at this time.
0 commit comments