diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /testtools | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/com/sun/star/comp/bridge/TestComponent.java | 8 | ||||
-rw-r--r-- | testtools/source/servicetests/TestService.java | 8 |
2 files changed, 8 insertions, 8 deletions
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( diff --git a/testtools/source/servicetests/TestService.java b/testtools/source/servicetests/TestService.java index 8d3c4c5203a5..a825f0df1cd9 100644 --- a/testtools/source/servicetests/TestService.java +++ b/testtools/source/servicetests/TestService.java @@ -87,7 +87,7 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } public void setProp6(int value) { - prop6 = new Integer(value); + prop6 = Integer.valueOf(value); } public int getProp7() @@ -96,7 +96,7 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } public void setProp7(int value) { - prop7 = new Integer(value); + prop7 = Integer.valueOf(value); } public int getProp8Long() { @@ -117,8 +117,8 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } private int prop1 = 1; - private Integer prop6 = new Integer(6); - private Integer prop7 = new Integer(7); + private Integer prop6 = Integer.valueOf(6); + private Integer prop7 = Integer.valueOf(7); private int prop8 = 8; } |