summaryrefslogtreecommitdiff
path: root/jurt/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:10:41 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commit8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (patch)
tree87575bd76a2ce98793d2bb1773ddc4a9c4e5e41c /jurt/test
parentff0ad0493ee1729c726587f667761b04101d774c (diff)
java: use 'Long.valueOf' instead of 'new Long'
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
Diffstat (limited to 'jurt/test')
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java2
-rw-r--r--jurt/test/com/sun/star/uno/AnyConverter_Test.java6
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) ));