summaryrefslogtreecommitdiff
path: root/chart2/qa/TestCaseOldAPI.java
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 /chart2/qa/TestCaseOldAPI.java
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 'chart2/qa/TestCaseOldAPI.java')
-rw-r--r--chart2/qa/TestCaseOldAPI.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 0c2571436a21..f5bc4f571c4c 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -356,7 +356,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
double nNewMax = 12.3;
double nNewOrigin = 2.7;
- xProp.setPropertyValue( "Max", new Double( nNewMax ));
+ xProp.setPropertyValue( "Max", Double.valueOf( nNewMax ));
assure( "AutoMax is on", ! AnyConverter.toBoolean( xProp.getPropertyValue( "AutoMax" )) );
assure( "Maximum value invalid",
@@ -367,7 +367,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
xProp.setPropertyValue( "AutoMin", Boolean.TRUE);
assure( "AutoMin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoMin" )) );
- xProp.setPropertyValue( "Origin", new Double( nNewOrigin ));
+ xProp.setPropertyValue( "Origin", Double.valueOf( nNewOrigin ));
assure( "Origin invalid",
utils.approxEqual(
AnyConverter.toDouble( xProp.getPropertyValue( "Origin" )),
@@ -400,7 +400,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
AnyConverter.toInt( xProp.getPropertyValue( "TextRotation" )) == nNewTextRotation );
double fStepMain = 10.0;
- xProp.setPropertyValue( "StepMain", new Double( fStepMain ));
+ xProp.setPropertyValue( "StepMain", Double.valueOf( fStepMain ));
assure( "Property StepMain",
AnyConverter.toDouble( xProp.getPropertyValue( "StepMain" )) == fStepMain );
@@ -408,7 +408,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
// internally, the help-step is stored as an integer number of
// substeps
double fStepHelp = 5.0;
- xProp.setPropertyValue( "StepHelp", new Double( fStepHelp ));
+ xProp.setPropertyValue( "StepHelp", Double.valueOf( fStepHelp ));
assure( "Property StepHelp",
AnyConverter.toDouble( xProp.getPropertyValue( "StepHelp" )) == fStepHelp );