Skip to content

Commit 326f2b0

Browse files
committed
Java: Accept qltest change showing FP removal.
1 parent 1d4c819 commit 326f2b0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void m4(int[] a, int[] b) {
6464
int sum = 0;
6565
for (int i = 0; i < a.length; ) {
6666
sum += a[i++]; // OK
67-
sum += a[i++]; // OK - FP
67+
sum += a[i++]; // OK
6868
}
6969
int len = b.length;
7070
if ((len & 1) != 0)

java/ql/test/query-tests/RangeAnalysis/ArrayIndexOutOfBounds.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
| A.java:45:14:45:22 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |
44
| A.java:49:14:49:22 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |
55
| A.java:58:14:58:19 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |
6-
| A.java:67:14:67:19 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |
76
| A.java:89:12:89:16 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |
87
| A.java:100:18:100:31 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length + 8. |
98
| A.java:113:14:113:21 | ...[...] | This array access might be out of bounds, as the index might be equal to the array length. |

0 commit comments

Comments
 (0)