diff --git a/java/ql/src/utils/GenerateFlowTestCase.qll b/java/ql/src/utils/GenerateFlowTestCase.qll index 67ebdc4143a..841a3922b9a 100644 --- a/java/ql/src/utils/GenerateFlowTestCase.qll +++ b/java/ql/src/utils/GenerateFlowTestCase.qll @@ -242,13 +242,13 @@ class TestCase extends TTestCase { (i = -1 or exists(callable.getParameter(i))) and if baseInput = SummaryComponentStack::argument(i) then result = "in" - else ( + else if baseOutput = SummaryComponentStack::argument(i) then result = "out" - else ( - if i = -1 then result = "instance" else result = this.getFiller(i) - ) - ) + else + if i = -1 + then result = "instance" + else result = this.getFiller(i) } /**