summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/FirstSteps
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-02 09:47:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-02 12:00:24 +0100
commitcb982f14796aa4dc4362bc6fde74161afa11777b (patch)
tree58267840e3cc2a2d6e344337fe3d735063900711 /odk/examples/DevelopersGuide/FirstSteps
parenta71da3b7a80ca32b595a8ca0ea3da650b0af376c (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 'odk/examples/DevelopersGuide/FirstSteps')
-rw-r--r--odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
index 2dd4e9c0e68d..66bb2d8d6420 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
+++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
@@ -319,7 +319,7 @@ public class HelloTextTableShape {
xCursorProps.setPropertyValue("CharPosture",
com.sun.star.awt.FontSlant.ITALIC);
xCursorProps.setPropertyValue("CharWeight",
- new Float(com.sun.star.awt.FontWeight.BOLD));
+ Float.valueOf(com.sun.star.awt.FontWeight.BOLD));
// add more text at the end of the text using insertString
xTextCursor.gotoEnd(false);