summaryrefslogtreecommitdiff
path: root/ridljar/test/com
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /ridljar/test/com
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'ridljar/test/com')
-rw-r--r--ridljar/test/com/sun/star/uno/Any_Test.java2
-rw-r--r--ridljar/test/com/sun/star/uno/UnoRuntime_Test.java10
2 files changed, 6 insertions, 6 deletions
diff --git a/ridljar/test/com/sun/star/uno/Any_Test.java b/ridljar/test/com/sun/star/uno/Any_Test.java
index 28684d630bfb..9ecde9e5388e 100644
--- a/ridljar/test/com/sun/star/uno/Any_Test.java
+++ b/ridljar/test/com/sun/star/uno/Any_Test.java
@@ -35,7 +35,7 @@ public final class Any_Test {
@Test public void testComplete() {
assertSame(Any.VOID, Any.complete(Any.VOID));
assertEquals(
- new Any(Type.LONG, new Integer(10)), Any.complete(new Integer(10)));
+ new Any(Type.LONG, Integer.valueOf(10)), Any.complete(Integer.valueOf(10)));
assertEquals(
new Any(new Type(XInterface.class), null), Any.complete(null));
XInterface x = new XInterface() {};
diff --git a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java
index 5992eda802b2..e92422ffa1e4 100644
--- a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java
+++ b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java
@@ -57,11 +57,11 @@ public final class UnoRuntime_Test {
@Test public void test_areSame() {
assertTrue(
UnoRuntime.areSame(
- new Any(Type.UNSIGNED_LONG, new Integer(3)),
- new Any(Type.UNSIGNED_LONG, new Integer(3))));
+ new Any(Type.UNSIGNED_LONG, Integer.valueOf(3)),
+ new Any(Type.UNSIGNED_LONG, Integer.valueOf(3))));
assertFalse(
UnoRuntime.areSame(
- new Any(Type.UNSIGNED_LONG, new Integer(3)), new Integer(3)));
+ new Any(Type.UNSIGNED_LONG, Integer.valueOf(3)), Integer.valueOf(3)));
assertFalse(UnoRuntime.areSame(new int[] { 1 }, new int[] { 1, 2 }));
assertTrue(
UnoRuntime.areSame(
@@ -74,7 +74,7 @@ public final class UnoRuntime_Test {
new Optional<Integer>()),
new Any(
new Type("com.sun.star.beans.Optional<unsigned long>"),
- new Optional<Integer>(false, new Integer(0)))));
+ new Optional<Integer>(false, Integer.valueOf(0)))));
assertFalse(UnoRuntime.areSame(new Test1(), new Test2()));
Test2 test2 = new Test2();
assertTrue(
@@ -86,7 +86,7 @@ public final class UnoRuntime_Test {
@SuppressWarnings("rawtypes")
@Test public void test_completeValue() {
assertEquals(
- new Integer(0), UnoRuntime.completeValue(Type.UNSIGNED_LONG, null));
+ Integer.valueOf(0), UnoRuntime.completeValue(Type.UNSIGNED_LONG, null));
Object v = UnoRuntime.completeValue(
new Type("[][]unsigned long"), null);
assertTrue(v instanceof int[][]);