summaryrefslogtreecommitdiff
path: root/javaunohelper/com
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:12:27 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commit0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch)
tree17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /javaunohelper/com
parent8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff)
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'javaunohelper/com')
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
index bf7a69f45758..118738c7c1d7 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
@@ -737,7 +737,7 @@ XMultiPropertySet
else if (cl.equals(byte.class))
retVal= new Byte(AnyConverter.toByte(obj));
else if (cl.equals(short.class))
- retVal= new Short(AnyConverter.toShort(obj));
+ retVal= Short.valueOf(AnyConverter.toShort(obj));
else if (cl.equals(int.class))
retVal= Integer.valueOf(AnyConverter.toInt(obj));
else if (cl.equals(long.class))
@@ -759,7 +759,7 @@ XMultiPropertySet
else if (cl.equals(Byte.class))
retVal= new Byte(AnyConverter.toByte(obj));
else if (cl.equals(Short.class))
- retVal= new Short(AnyConverter.toShort(obj));
+ retVal= Short.valueOf(AnyConverter.toShort(obj));
else if (cl.equals(Integer.class))
retVal= Integer.valueOf(AnyConverter.toInt(obj));
else if (cl.equals(Long.class))