File tree Expand file tree Collapse file tree
java/ql/lib/semmle/code/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -930,9 +930,12 @@ private module ControlFlowGraphImpl {
930930 or
931931 exists ( WhenBranch whenbranch | whenbranch = n |
932932 // If the condition completes with anything other than true
933- // (e.g. false or an exception), then the branch is done
933+ // (or "normal", which we will also see if we don't know how
934+ // to make specific true/false edges for the condition)
935+ // (e.g. false or an exception), then the branch is done.
934936 last ( whenbranch .getCondition ( ) , last , completion ) and
935- completion != BooleanCompletion ( true , _)
937+ not completion = BooleanCompletion ( true , _) and
938+ not completion = NormalCompletion ( )
936939 or
937940 // Otherwise we wrap the completion up in a YieldCompletion
938941 // so that the `when` expression can tell that we have finished,
You can’t perform that action at this time.
0 commit comments