From cb982f14796aa4dc4362bc6fde74161afa11777b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Nov 2023 09:47:02 +0200 Subject: 'new Float' is deprecated in Java replace with Float.valueOf Change-Id: Ib6408b24dac2953789d0ec67e73b8be8aefca252 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158784 Tested-by: Jenkins Reviewed-by: Noel Grandin --- 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 271b139565fb..0660f930f0fb 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponent.java +++ b/testtools/com/sun/star/comp/bridge/TestComponent.java @@ -1211,7 +1211,7 @@ public class TestComponent { new Any(Type.UNSIGNED_LONG, Integer.valueOf(-1)), Long.valueOf(Long.MIN_VALUE), new Any(Type.UNSIGNED_HYPER, Long.valueOf(-1L)), - new Float(0.123f), + Float.valueOf(0.123f), new Double(0.456), new Character('X'), "test", @@ -1268,7 +1268,7 @@ public class TestComponent { new TestPolyStruct(Long.valueOf(Long.MIN_VALUE)), new TestPolyStruct(new Character('X')), new TestPolyStruct("test"), - new TestPolyStruct(new Float(0.123f)), + new TestPolyStruct(Float.valueOf(0.123f)), new TestPolyStruct(new Double(0.456)), new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()), new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()), -- cgit