Skip to content

Commit 1d007b6

Browse files
authored
Java: delete two test cases as per code review
1 parent e5331a4 commit 1d007b6

File tree

1 file changed

+13
-13
lines changed
  • java/ql/test/query-tests/ContinueInFalseLoop

1 file changed

+13
-13
lines changed

java/ql/test/query-tests/ContinueInFalseLoop/A.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ void test1(int x, Cond c) {
3030
break;
3131
} while (c.cond());
3232

33-
// --- while, for loops ---
3433

35-
while (c.cond()) {
36-
if (c.cond())
37-
continue; // GOOD [never reached, if the condition changed so it was then the result would no longer apply]
38-
if (c.cond())
39-
break;
40-
}
4134

42-
for (i = 0; c.cond(); i++) {
43-
if (c.cond())
44-
continue; // GOOD [never reached, if the condition changed so it was then the result would no longer apply]
45-
if (c.cond())
46-
break;
47-
}
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
4848

4949
// --- nested loops ---
5050

0 commit comments

Comments
 (0)