diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 10:54:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:39 +0200 |
commit | 485c208626d435e1693d3623470c74f4b1e065e9 (patch) | |
tree | 95ad7c763827917f8cebeeab3961882745f8258d /wizards | |
parent | aef6ab2098f065f1cee102538776dd99d9db3b0f (diff) |
java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: I5a9bc87c38cea2d5e671ed779eaedab92e98ac0d
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 676a7604ccb1..aa580ec1b1fc 100644 --- a/wizards/com/sun/star/wizards/common/NumericalHelper.java +++ b/wizards/com/sun/star/wizards/common/NumericalHelper.java @@ -1029,7 +1029,7 @@ public class NumericalHelper break; case TypeClass.BYTE_value: aTypeObject.iType = BYTE_TYPE; - aTypeObject.aValue = new Byte(AnyConverter.toByte(aValue)); + aTypeObject.aValue = Byte.valueOf(AnyConverter.toByte(aValue)); break; case TypeClass.SHORT_value: aTypeObject.iType = SHORT_TYPE; @@ -1247,7 +1247,7 @@ public class NumericalHelper aShortVal = new Object[vals.length]; for (int i = 0; i < vals.length; i++) { - aShortVal[i] = new Byte(vals[i]); + aShortVal[i] = Byte.valueOf(vals[i]); } } else if (c.equals(short[].class)) |