diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 13:58:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:42 +0200 |
commit | 95a2f7390753c4edcec70626b6d91c63a7c200ff (patch) | |
tree | 89a7fe3aa47f611f70f5ee60c41e545bed808724 /wizards | |
parent | f882a157fcae80de52cb8024655739f5a75d5b39 (diff) |
java: use 'Long.valueOf' instead of 'new Long'
Change-Id: Idba02391126e5046f77b26b134a76424f7931e0d
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/NumericalHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/NumericalHelper.java b/wizards/com/sun/star/wizards/common/NumericalHelper.java index 6ae8a2fbd664..e0c5560a53f3 100644 --- a/wizards/com/sun/star/wizards/common/NumericalHelper.java +++ b/wizards/com/sun/star/wizards/common/NumericalHelper.java @@ -1041,7 +1041,7 @@ public class NumericalHelper break; case TypeClass.HYPER_value: aTypeObject.iType = LONG_TYPE; - aTypeObject.aValue = new Long(AnyConverter.toLong(aValue)); + aTypeObject.aValue = Long.valueOf(AnyConverter.toLong(aValue)); break; case TypeClass.FLOAT_value: aTypeObject.iType = FLOAT_TYPE; @@ -1274,7 +1274,7 @@ public class NumericalHelper aShortVal = new Object[vals.length]; for (int i = 0; i < vals.length; i++) { - aShortVal[i] = new Long(vals[i]); + aShortVal[i] = Long.valueOf(vals[i]); } } else if (c.equals(float[].class)) |