summaryrefslogtreecommitdiff
path: root/chart2/qa
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 /chart2/qa
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 'chart2/qa')
-rw-r--r--chart2/qa/TestCaseOldAPI.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 613ba480e7be..0c2571436a21 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -162,7 +162,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
float fHeight = (float)17.0;
xTitleProp.setPropertyValue( "String", aTitle );
- xTitleProp.setPropertyValue( "CharHeight", new Float( fHeight ) );
+ xTitleProp.setPropertyValue( "CharHeight", Float.valueOf( fHeight ) );
float fNewHeight = AnyConverter.toFloat( xTitleProp.getPropertyValue( "CharHeight" ) );
assure( "Changing CharHeight via old API failed", fNewHeight == fHeight );
@@ -213,8 +213,8 @@ public class TestCaseOldAPI extends ComplexTestCase {
float fHeight = (float)14.0;
xTitleProp.setPropertyValue( "CharColor", Integer.valueOf( nColor ) );
- xTitleProp.setPropertyValue( "CharWeight", new Float( fWeight ));
- xTitleProp.setPropertyValue( "CharHeight", new Float( fHeight ) );
+ xTitleProp.setPropertyValue( "CharWeight", Float.valueOf( fWeight ));
+ xTitleProp.setPropertyValue( "CharHeight", Float.valueOf( fHeight ) );
int nNewColor = AnyConverter.toInt( xTitleProp.getPropertyValue( "CharColor" ) );
assure( "Changing CharColor via old API failed", nNewColor == nColor );
@@ -390,7 +390,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
assure( "Property LineColor",
AnyConverter.toInt( xProp.getPropertyValue( "LineColor" )) == nNewColor );
float fNewCharHeight = (float)(16.0);
- xProp.setPropertyValue( "CharHeight", new Float( fNewCharHeight ));
+ xProp.setPropertyValue( "CharHeight", Float.valueOf( fNewCharHeight ));
assure( "Property CharHeight",
AnyConverter.toFloat( xProp.getPropertyValue( "CharHeight" )) == fNewCharHeight );
@@ -444,7 +444,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
xLegendProp.getPropertyValue( "Alignment" )) == eNewPos );
float fNewCharHeight = (float)(11.0);
- xLegendProp.setPropertyValue( "CharHeight", new Float( fNewCharHeight ));
+ xLegendProp.setPropertyValue( "CharHeight", Float.valueOf( fNewCharHeight ));
assure( "Property CharHeight",
AnyConverter.toFloat( xLegendProp.getPropertyValue( "CharHeight" )) == fNewCharHeight );