summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}