File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -973,18 +973,14 @@ private module ControlFlowGraphImpl {
973
973
// A pattern case statement can complete:
974
974
// * On failure of its type test (boolean false)
975
975
// * On failure of its guard test if any (boolean false)
976
- // * On any abrupt completion of its guard
977
976
// * On completion of its variable declarations, if it is not a rule and has no guard (normal completion)
978
977
// * On success of its guard test, if it is not a rule (boolean true)
979
978
// (the latter two cases are accounted for by lastPatternCaseMatchingOp)
980
979
exists ( PatternCase pc | n = pc |
981
980
last = pc and completion = basicBooleanCompletion ( false )
982
981
or
983
982
last ( pc .getGuard ( ) , last , completion ) and
984
- (
985
- completion = BooleanCompletion ( false , _) or
986
- not completion instanceof NormalOrBooleanCompletion
987
- )
983
+ completion = BooleanCompletion ( false , _)
988
984
or
989
985
not pc .isRule ( ) and
990
986
lastPatternCaseMatchingOp ( pc , last , completion )
You can’t perform that action at this time.
0 commit comments