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 /jurt/test | |
parent | 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (diff) |
java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
Diffstat (limited to 'jurt/test')
-rw-r--r-- | jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java | 2 | ||||
-rw-r--r-- | jurt/test/com/sun/star/uno/AnyConverter_Test.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java index ef4a4da49a65..39f8e8b2a3cd 100644 --- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java +++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java @@ -44,7 +44,7 @@ public final class Marshaling_Test { new com.sun.star.uno.RuntimeException("testRuntimeException"), new com.sun.star.uno.Exception("testException"), Boolean.TRUE, - new Byte((byte)47), + Byte.valueOf((byte)47), new Character('k'), new Double(0.12345), TestEnum.B, diff --git a/jurt/test/com/sun/star/uno/AnyConverter_Test.java b/jurt/test/com/sun/star/uno/AnyConverter_Test.java index b8be66d71760..0900eeaf64e6 100644 --- a/jurt/test/com/sun/star/uno/AnyConverter_Test.java +++ b/jurt/test/com/sun/star/uno/AnyConverter_Test.java @@ -39,7 +39,7 @@ public final class AnyConverter_Test { Boolean aBool= Boolean.TRUE; Character aChar= new Character('A'); - Byte aByte= new Byte((byte) 111); + Byte aByte= Byte.valueOf((byte) 111); Short aShort= Short.valueOf((short) 11111); Integer aInt= Integer.valueOf( 1111111); Long aLong= Long.valueOf( 0xffffffff); |