summaryrefslogtreecommitdiff
path: root/sc/qa/complex
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-14 12:46:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-14 12:46:50 +0200
commitf8eaeb8adeccdf304fde0b51bfc2ef3a545e60be (patch)
tree61165b0dabca6c140a3ae5ae1dcdd82d29b1b140 /sc/qa/complex
parent6df1e4dd3d9ddd43b1537f80dcd68516fd3252a7 (diff)
Assume util.ValueComparer.equalValue is precise enough here
...in this poorly understood legacy qadevOOo code Change-Id: Ic1322ecd4092c4be37a8ffe338b7b5a98397ee1f
Diffstat (limited to 'sc/qa/complex')
-rw-r--r--sc/qa/complex/sc/CalcRTL.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java
index f30fed0d5a91..7ca5be674671 100644
--- a/sc/qa/complex/sc/CalcRTL.java
+++ b/sc/qa/complex/sc/CalcRTL.java
@@ -428,15 +428,9 @@ public class CalcRTL
System.out.println("new = " + toString(newValue));
System.out.println("result = " + toString(resValue));
- if (resValue != null) {
- if ((!ValueComparer.equalValue(resValue, oldValue)) ||
- (!resValue.equals(oldValue))) {
- System.out.println("But it has changed.");
-
- return true;
- } else {
- return false;
- }
+ if (!ValueComparer.equalValue(resValue, oldValue)) {
+ System.out.println("But it has changed.");
+ return true;
} else {
return false;
}