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 /wizards/com/sun | |
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 'wizards/com/sun')
3 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/common/NumericalHelper.java b/wizards/com/sun/star/wizards/common/NumericalHelper.java index af74704df4a2..b15d4af02bfc 100644 --- a/wizards/com/sun/star/wizards/common/NumericalHelper.java +++ b/wizards/com/sun/star/wizards/common/NumericalHelper.java @@ -199,7 +199,7 @@ public class NumericalHelper break; case TypeClass.FLOAT_value: aTypeObject.iType = FLOAT_TYPE; - aTypeObject.aValue = new Float(AnyConverter.toFloat(aValue)); + aTypeObject.aValue = Float.valueOf(AnyConverter.toFloat(aValue)); break; case TypeClass.DOUBLE_value: aTypeObject.iType = DOUBLE_TYPE; diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java b/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java index a7343d9010f7..54f0c492b02d 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java @@ -142,7 +142,7 @@ public class DesignTemplate { a = SectionEmptyObject.create(); // an empty group has to use bold font - a.setPropertyValue("CharWeight", new Float(com.sun.star.awt.FontWeight.BOLD)); + a.setPropertyValue("CharWeight", Float.valueOf(com.sun.star.awt.FontWeight.BOLD)); } return a; } diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java index c6d3887cccaf..f39cc47174ed 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java @@ -60,7 +60,7 @@ abstract public class SectionObject public void setFontToBold() { - setPropertyValue("CharWeight", new Float(com.sun.star.awt.FontWeight.BOLD)); + setPropertyValue("CharWeight", Float.valueOf(com.sun.star.awt.FontWeight.BOLD)); } public void setPropertyValue(String _sKey, Object _nValue) |