summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-02 09:52:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-02 12:00:34 +0100
commit41d9584179ef7b4e18eda47c2c0a955df8c087a5 (patch)
tree272551363a71f4ea34c032504cc4e058a60a91ae /testtools
parentcb982f14796aa4dc4362bc6fde74161afa11777b (diff)
'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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'testtools')
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponent.java4
1 files changed, 2 insertions, 2 deletions
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),