summaryrefslogtreecommitdiff
path: root/odk/examples/java/Spreadsheet
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/Spreadsheet')
-rw-r--r--odk/examples/java/Spreadsheet/ChartTypeChange.java2
-rw-r--r--odk/examples/java/Spreadsheet/SCalc.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/java/Spreadsheet/ChartTypeChange.java b/odk/examples/java/Spreadsheet/ChartTypeChange.java
index d436b388925e..78f8b14bb417 100644
--- a/odk/examples/java/Spreadsheet/ChartTypeChange.java
+++ b/odk/examples/java/Spreadsheet/ChartTypeChange.java
@@ -336,7 +336,7 @@ public class ChartTypeChange {
System.out.println( "Could not get cell." );
}
if ( stringFlag.equals( "V" ) ) {
- xcell.setValue( ( new Float( stringValue ) ).floatValue() );
+ xcell.setValue( ( Float.valueOf( stringValue ) ).floatValue() );
}
else {
xcell.setFormula( stringValue );
diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java
index 90c5ce00f41d..db1bee8a803a 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -374,7 +374,7 @@ public class SCalc {
}
if (flag.equals("V")) {
- xCell.setValue((new Float(theValue)).floatValue());
+ xCell.setValue((Float.valueOf(theValue)).floatValue());
} else {
xCell.setFormula(theValue);
}