From 41d9584179ef7b4e18eda47c2c0a955df8c087a5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Nov 2023 09:52:08 +0200 Subject: 'new Double' is deprecated in Java replace with Double.valueOf Change-Id: If5be8e500e31ebf9d5fb20ea7dd474677d7c74ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158785 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 0660f930f0fb..0348f7224a2c 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponent.java +++ b/testtools/com/sun/star/comp/bridge/TestComponent.java @@ -1212,7 +1212,7 @@ public class TestComponent { Long.valueOf(Long.MIN_VALUE), new Any(Type.UNSIGNED_HYPER, Long.valueOf(-1L)), Float.valueOf(0.123f), - new Double(0.456), + Double.valueOf(0.456), new Character('X'), "test", Type.ANY, @@ -1269,7 +1269,7 @@ public class TestComponent { new TestPolyStruct(new Character('X')), new TestPolyStruct("test"), new TestPolyStruct(Float.valueOf(0.123f)), - new TestPolyStruct(new Double(0.456)), + new TestPolyStruct(Double.valueOf(0.456)), new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()), new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()), new TestPolyStruct(TestEnum.TWO), -- cgit