summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/NumericalHelper.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /wizards/com/sun/star/wizards/common/NumericalHelper.java
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'wizards/com/sun/star/wizards/common/NumericalHelper.java')
-rw-r--r--wizards/com/sun/star/wizards/common/NumericalHelper.java4
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 bf02290d9ae6..2b998ded224c 100644
--- a/wizards/com/sun/star/wizards/common/NumericalHelper.java
+++ b/wizards/com/sun/star/wizards/common/NumericalHelper.java
@@ -97,7 +97,7 @@ public class NumericalHelper
case STRING_TYPE:
try
{
- Integer i = new Integer((String) aTypeObject.aValue);
+ Integer i = Integer.valueOf((String) aTypeObject.aValue);
retValue = i.intValue();
}
catch (java.lang.NumberFormatException e)
@@ -257,7 +257,7 @@ public class NumericalHelper
break;
case TypeClass.LONG_value:
aTypeObject.iType = INT_TYPE;
- aTypeObject.aValue = new Integer(AnyConverter.toInt(aValue));
+ aTypeObject.aValue = Integer.valueOf(AnyConverter.toInt(aValue));
break;
case TypeClass.HYPER_value:
aTypeObject.iType = LONG_TYPE;