From c552aac9f889b094caaa35c3fd9d12fe7c3fc73c Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Tue, 12 Aug 2014 15:13:30 +0200
Subject: java: use 'Byte.valueOf' instead of 'new Byte'

Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
---
 testtools/com/sun/star/comp/bridge/TestComponent.java | 4 ++--
 1 file changed, 2 insertions(+), 2 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 220dfc497459..9876c18b0b7b 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -1165,7 +1165,7 @@ public class TestComponent {
                 null);
             Constructors.create2(context, new Object[] {
                 Boolean.TRUE,
-                new Byte(Byte.MIN_VALUE),
+                Byte.valueOf(Byte.MIN_VALUE),
                 Short.valueOf(Short.MIN_VALUE),
                 new Any(Type.UNSIGNED_SHORT, Short.valueOf((short) -1)),
                 Integer.valueOf(Integer.MIN_VALUE),
@@ -1223,7 +1223,7 @@ public class TestComponent {
                 new TestPolyStruct(Type.LONG),
                 new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)),
                 new TestPolyStruct(Boolean.TRUE),
-                new TestPolyStruct(new Byte(Byte.MIN_VALUE)),
+                new TestPolyStruct(Byte.valueOf(Byte.MIN_VALUE)),
                 new TestPolyStruct(Short.valueOf(Short.MIN_VALUE)),
                 new TestPolyStruct(Integer.valueOf(Integer.MIN_VALUE)),
                 new TestPolyStruct(Long.valueOf(Long.MIN_VALUE)),
-- 
cgit