diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /javaunohelper/com | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'javaunohelper/com')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java index 86d4107072de..327145f624ab 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java @@ -216,7 +216,7 @@ XMultiPropertySet */ protected Property getPropertyByHandle(int nHandle) { - return _handleToPropertyMap.get(new Integer(nHandle)); + return _handleToPropertyMap.get(Integer.valueOf(nHandle)); } /** Returns an array of all Property objects or an array of length null if there @@ -246,7 +246,7 @@ XMultiPropertySet { _nameToPropertyMap.put(prop.Name, prop); if (prop.Handle != -1) - _handleToPropertyMap.put(new Integer(prop.Handle), prop); + _handleToPropertyMap.put(Integer.valueOf(prop.Handle), prop); } /** Assigns an identifyer object to a Property object so that the identifyer @@ -739,7 +739,7 @@ XMultiPropertySet else if (cl.equals(short.class)) retVal= new Short(AnyConverter.toShort(obj)); else if (cl.equals(int.class)) - retVal= new Integer(AnyConverter.toInt(obj)); + retVal= Integer.valueOf(AnyConverter.toInt(obj)); else if (cl.equals(long.class)) retVal= new Long(AnyConverter.toLong(obj)); else if (cl.equals(float.class)) @@ -761,7 +761,7 @@ XMultiPropertySet else if (cl.equals(Short.class)) retVal= new Short(AnyConverter.toShort(obj)); else if (cl.equals(Integer.class)) - retVal= new Integer(AnyConverter.toInt(obj)); + retVal= Integer.valueOf(AnyConverter.toInt(obj)); else if (cl.equals(Long.class)) retVal= new Long(AnyConverter.toLong(obj)); else if (cl.equals(Float.class)) |