diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-21 09:06:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-21 10:46:57 +0000 |
commit | 72f9ee58e88fbd94252faa3e1e6a4f7fd7517f49 (patch) | |
tree | d37c96c223b1e83390a91ed61c70e6fca6039f19 /qadevOOo | |
parent | f7e4cf3c27100dbaf292dfacf0964bdade0a866a (diff) |
coverity#1326926 NS: Suspicious use of non-short-circuit boolean operator
Change-Id: I16c0d0b19290d59089a11eb660aa23fa8b03535c
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/chart/_XChartDataArray.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java b/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java index cd84569f26ff..06296ef1a364 100644 --- a/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java +++ b/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java @@ -190,7 +190,9 @@ public class _XChartDataArray extends MultiMethodTest { if (bResult) { for (int i = 0; i < dscs.length; 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; + } } } |