diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:12:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch) | |
tree | 17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /testtools/com/sun | |
parent | 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff) |
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'testtools/com/sun')
-rw-r--r-- | testtools/com/sun/star/comp/bridge/TestComponent.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java index beba7850dae4..220dfc497459 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponent.java +++ b/testtools/com/sun/star/comp/bridge/TestComponent.java @@ -1166,8 +1166,8 @@ public class TestComponent { Constructors.create2(context, new Object[] { Boolean.TRUE, new Byte(Byte.MIN_VALUE), - new Short(Short.MIN_VALUE), - new Any(Type.UNSIGNED_SHORT, new Short((short) -1)), + Short.valueOf(Short.MIN_VALUE), + new Any(Type.UNSIGNED_SHORT, Short.valueOf((short) -1)), Integer.valueOf(Integer.MIN_VALUE), new Any(Type.UNSIGNED_LONG, Integer.valueOf(-1)), Long.valueOf(Long.MIN_VALUE), @@ -1224,7 +1224,7 @@ public class TestComponent { new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)), new TestPolyStruct(Boolean.TRUE), new TestPolyStruct(new Byte(Byte.MIN_VALUE)), - new TestPolyStruct(new Short(Short.MIN_VALUE)), + new TestPolyStruct(Short.valueOf(Short.MIN_VALUE)), new TestPolyStruct(Integer.valueOf(Integer.MIN_VALUE)), new TestPolyStruct(Long.valueOf(Long.MIN_VALUE)), new TestPolyStruct(new Character('X')), |