diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-14 10:37:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-14 10:39:16 +0200 |
commit | 8e3f72141625898c01e39e94d3fdaefd66c885ff (patch) | |
tree | 8f753b30eb2eab403d2761a6d55b588ee7956886 /sc | |
parent | db4870bc2fa7ccb1be30706cb53b2f73ece772bf (diff) |
casting before calling getClass() is a waste of time
Change-Id: Id88aa9e43b736e6fdeaf098a952dae5421468f83
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/complex/sc/CalcRTL.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java index 3c3fdd4e50f9..9f946a51235a 100644 --- a/sc/qa/complex/sc/CalcRTL.java +++ b/sc/qa/complex/sc/CalcRTL.java @@ -403,11 +403,8 @@ public class CalcRTL "' has changed"); try { - if (!util.utils.isVoid(oldValue) && - oldValue instanceof Any) { - oldValue = AnyConverter.toObject( - new Type(((Any) oldValue).getClass()), - oldValue); + if (!util.utils.isVoid(oldValue) && oldValue instanceof Any) { + oldValue = AnyConverter.toObject( new Type(oldValue.getClass()), oldValue); } System.out.println("old = " + toString(oldValue)); |