coverity#1326926 NS: Suspicious use of non-short-circuit boolean operator

Change-Id: I16c0d0b19290d59089a11eb660aa23fa8b03535c
This commit is contained in:
Caolán McNamara
2015-12-21 09:06:33 +00:00
parent f7e4cf3c27
commit 72f9ee58e8

View File

@@ -190,7 +190,9 @@ public class _XChartDataArray extends MultiMethodTest {
if (bResult) { if (bResult) {
for (int i = 0; i < dscs.length; i++) { for (int i = 0; i < dscs.length; i++) {
log.println("Row " + i + ": got " + dscs[i] + " expected: " + rowDscs[i]); log.println("Row " + i + ": got " + dscs[i] + " expected: " + rowDscs[i]);
bResult &= dscs[i].equals(rowDscs[i]); if (!dscs[i].equals(rowDscs[i])) {
bResult = false;
}
} }
} }