diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:13:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | c552aac9f889b094caaa35c3fd9d12fe7c3fc73c (patch) | |
tree | b6b583a6fe44817d37d3b9963ed973b67d16ed4f /javaunohelper/com | |
parent | 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (diff) |
java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
Diffstat (limited to 'javaunohelper/com')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java index 118738c7c1d7..2c808e3e9866 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java @@ -576,7 +576,7 @@ XMultiPropertySet * value of the property is to be stored in a member variable of type int with name intProp. Then setPropertyValue is * called: * <pre> - * set.setPropertyValue( "PropA", new Byte( (byte)111)); + * set.setPropertyValue( "PropA", Byte.valueOf( (byte)111)); * </pre> * At some point setPropertyValue will call convertPropertyValue and pass in the Byte object. Since we allow * that Byte values can be used with the property and know that the value is to be stored in intProp (type int) @@ -735,7 +735,7 @@ XMultiPropertySet else if (cl.equals(char.class)) retVal= new Character(AnyConverter.toChar(obj)); else if (cl.equals(byte.class)) - retVal= new Byte(AnyConverter.toByte(obj)); + retVal= Byte.valueOf(AnyConverter.toByte(obj)); else if (cl.equals(short.class)) retVal= Short.valueOf(AnyConverter.toShort(obj)); else if (cl.equals(int.class)) @@ -757,7 +757,7 @@ XMultiPropertySet else if (cl.equals(Character.class)) retVal= new Character(AnyConverter.toChar(obj)); else if (cl.equals(Byte.class)) - retVal= new Byte(AnyConverter.toByte(obj)); + retVal= Byte.valueOf(AnyConverter.toByte(obj)); else if (cl.equals(Short.class)) retVal= Short.valueOf(AnyConverter.toShort(obj)); else if (cl.equals(Integer.class)) |