diff options
Diffstat (limited to 'jurt/test/com')
-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 | 6 |
2 files changed, 4 insertions, 4 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 73919da886c9..c5498dea1ae8 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 @@ -58,7 +58,7 @@ public final class Marshaling_Test { Integer.valueOf(0xff00), Integer.valueOf(0xff0000), Integer.valueOf(0xff000000), - new Long(666L), + Long.valueOf(666L), new Short((short)444), new String("blabla"), Integer.valueOf(10), // Any as object diff --git a/jurt/test/com/sun/star/uno/AnyConverter_Test.java b/jurt/test/com/sun/star/uno/AnyConverter_Test.java index ce6316578f68..3a0c77723a4d 100644 --- a/jurt/test/com/sun/star/uno/AnyConverter_Test.java +++ b/jurt/test/com/sun/star/uno/AnyConverter_Test.java @@ -42,7 +42,7 @@ public final class AnyConverter_Test { Byte aByte= new Byte((byte) 111); Short aShort= new Short((short) 11111); Integer aInt= Integer.valueOf( 1111111); - Long aLong= new Long( 0xffffffff); + Long aLong= Long.valueOf( 0xffffffff); Float aFloat= new Float( 3.14); Double aDouble= new Double( 3.145); Object aObj= new ATypeProvider(); @@ -389,7 +389,7 @@ public final class AnyConverter_Test { a = new Any( Type.UNSIGNED_LONG, Integer.valueOf(5) ); assertEquals(5, AnyConverter.toUnsignedLong(a)); assertEquals(5, AnyConverter.toLong(a)); - a = new Any( Type.UNSIGNED_HYPER, new Long(5) ); + a = new Any( Type.UNSIGNED_HYPER, Long.valueOf(5) ); assertEquals(5, AnyConverter.toUnsignedLong(a)); // must fail @@ -819,7 +819,7 @@ public final class AnyConverter_Test { assertTrue(AnyConverter.isLong(aLong)); assertTrue(AnyConverter.isLong(anyLong)); assertEquals(Type.HYPER, AnyConverter.getType(anyLong)); - Any a = new Any( Type.UNSIGNED_HYPER, new Long(5) ); + Any a = new Any( Type.UNSIGNED_HYPER, Long.valueOf(5) ); assertEquals(Type.UNSIGNED_HYPER, AnyConverter.getType(a)); assertFalse(AnyConverter.isLong(a)); assertFalse(Type.HYPER.equals( AnyConverter.getType(a) )); |