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

Change-Id: I2450cdd6e74e1ebab13c61f3a88668df412f6a61
This commit is contained in:
Caolán McNamara
2015-12-21 09:07:05 +00:00
parent 72f9ee58e8
commit 91fde32383

View File

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