From ff0ad0493ee1729c726587f667761b04101d774c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:09:06 +0200 Subject: java: use 'Integer.valueOf' instead of 'new Integer' Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940 --- testtools/com/sun/star/comp/bridge/TestComponent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testtools/com') diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java index ba50d56c1de9..ea7f572cc4aa 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponent.java +++ b/testtools/com/sun/star/comp/bridge/TestComponent.java @@ -1168,8 +1168,8 @@ public class TestComponent { new Byte(Byte.MIN_VALUE), new Short(Short.MIN_VALUE), new Any(Type.UNSIGNED_SHORT, new Short((short) -1)), - new Integer(Integer.MIN_VALUE), - new Any(Type.UNSIGNED_LONG, new Integer(-1)), + Integer.valueOf(Integer.MIN_VALUE), + new Any(Type.UNSIGNED_LONG, Integer.valueOf(-1)), new Long(Long.MIN_VALUE), new Any(Type.UNSIGNED_HYPER, new Long(-1L)), new Float(0.123f), @@ -1225,7 +1225,7 @@ public class TestComponent { new TestPolyStruct(Boolean.TRUE), new TestPolyStruct(new Byte(Byte.MIN_VALUE)), new TestPolyStruct(new Short(Short.MIN_VALUE)), - new TestPolyStruct(new Integer(Integer.MIN_VALUE)), + new TestPolyStruct(Integer.valueOf(Integer.MIN_VALUE)), new TestPolyStruct(new Long(Long.MIN_VALUE)), new TestPolyStruct(new Character('X')), new TestPolyStruct("test"), @@ -1261,7 +1261,7 @@ public class TestComponent { new TestPolyStruct(new TestPolyStruct2[] {new TestPolyStruct2( new TestPolyStruct(new Character('X')), new Any[] {new Any(Type.BOOLEAN, Boolean.TRUE)})}), new TestPolyStruct(new int[][] { new int[] {Integer.MIN_VALUE} }), - new TestPolyStruct[]{ new TestPolyStruct(new Integer(Integer.MIN_VALUE))}, + new TestPolyStruct[]{ new TestPolyStruct(Integer.valueOf(Integer.MIN_VALUE))}, new TestPolyStruct[]{new TestPolyStruct(new TestPolyStruct2( new Character('X'), new Any(Type.BOOLEAN, Boolean.TRUE)))}, new TestPolyStruct[]{new TestPolyStruct(new TestPolyStruct2( -- cgit