diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-02 09:47:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-02 12:00:24 +0100 |
commit | cb982f14796aa4dc4362bc6fde74161afa11777b (patch) | |
tree | 58267840e3cc2a2d6e344337fe3d735063900711 /testtools | |
parent | a71da3b7a80ca32b595a8ca0ea3da650b0af376c (diff) |
'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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/com/sun/star/comp/bridge/TestComponent.java | 4 |
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 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()), |