diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-14 12:46:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-14 12:46:50 +0200 |
commit | f8eaeb8adeccdf304fde0b51bfc2ef3a545e60be (patch) | |
tree | 61165b0dabca6c140a3ae5ae1dcdd82d29b1b140 | |
parent | 6df1e4dd3d9ddd43b1537f80dcd68516fd3252a7 (diff) |
Assume util.ValueComparer.equalValue is precise enough here
...in this poorly understood legacy qadevOOo code
Change-Id: Ic1322ecd4092c4be37a8ffe338b7b5a98397ee1f
-rw-r--r-- | sc/qa/complex/sc/CalcRTL.java | 12 |
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; } |