From 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:12:27 +0200 Subject: java: use 'Short.valueOf' instead of 'new Short' Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219 --- testtools/com/sun/star/comp/bridge/TestComponent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testtools') 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')), -- cgit