diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-04 15:30:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-04 17:10:16 +0000 |
commit | 95b3a6c722dd39668ac812d39ee7b4c6a78ac01e (patch) | |
tree | 03c719b7349bedde1f61f9476a0bde9fbbb4192f /qadevOOo | |
parent | 29215619ed91c1d066b8e6e715f0c020bf7892f7 (diff) |
coverity#1326893 silence FE: Test for floating point equality
Change-Id: I8a0b657942cbe3de559a6b115fad2229490f8985
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/table/_XCell.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/ifc/table/_XCell.java b/qadevOOo/tests/java/ifc/table/_XCell.java index 00c393ec2ed2..353e8d6b3dca 100644 --- a/qadevOOo/tests/java/ifc/table/_XCell.java +++ b/qadevOOo/tests/java/ifc/table/_XCell.java @@ -143,15 +143,14 @@ public class _XCell extends MultiMethodTest { * Has <b> OK </b> status if the value set is equal to value get. <p> */ public void _setValue() { - boolean result = true; - double cellValue = 0; log.println("setValue() ..."); - oObj.setValue(222.333) ; - cellValue = oObj.getValue() ; + double inValue = 222.333; + oObj.setValue(inValue) ; + double cellValue = oObj.getValue() ; - result &= (cellValue == 222.333); + boolean result = Double.valueOf(cellValue).equals(inValue); tRes.tested("setValue()", result); - } // end setValue() + } // end setValue() } |