Skip to content

Commit e302616

Browse files
committed
Java: Accept qltest change.
1 parent f9ffee0 commit e302616

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public void testForLoopCondition(Iterable iter) {
301301
public void assertThatTest() {
302302
Object assertThat_ok1 = maybe() ? null : new Object();
303303
assertThat(assertThat_ok1, notNullValue());
304-
assertThat_ok1.toString(); // FP
304+
assertThat_ok1.toString(); // OK
305305
}
306306

307307
private boolean m;

java/ql/test/query-tests/Nullness/NullMaybe.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
| A.java:215:24:215:31 | if_maybe | Variable $@ may be null at this access because of $@ assignment. | A.java:211:5:211:25 | String if_maybe | if_maybe | A.java:213:7:213:21 | ...=... | this |
55
| A.java:230:26:230:34 | for_maybe | Variable $@ may be null at this access because of $@ assignment. | A.java:229:10:229:30 | String for_maybe | for_maybe | A.java:229:35:229:50 | ...=... | this |
66
| A.java:273:24:273:32 | for_maybe | Variable $@ may be null at this access because of $@ assignment. | A.java:268:5:268:63 | List<String> for_maybe | for_maybe | A.java:271:7:271:22 | ...=... | this |
7-
| A.java:304:5:304:18 | assertThat_ok1 | Variable $@ may be null at this access because of $@ assignment. | A.java:302:5:302:58 | Object assertThat_ok1 | assertThat_ok1 | A.java:302:12:302:57 | assertThat_ok1 | this |
87
| B.java:16:5:16:9 | param | Variable $@ may be null at this access because of $@ null argument. | B.java:15:23:15:34 | param | param | B.java:11:13:11:16 | null | this |
98
| B.java:23:5:23:9 | param | Variable $@ may be null at this access as suggested by $@ null guard. | B.java:19:23:19:34 | param | param | B.java:20:9:20:21 | ... != ... | this |
109
| B.java:57:7:57:8 | o7 | Variable $@ may be null at this access because of $@ assignment. | B.java:52:5:52:34 | Object o7 | o7 | B.java:52:12:52:33 | o7 | this |

0 commit comments

Comments
 (0)