summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
index 0f7e25851a4d..f6a8f8c035d8 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
@@ -114,7 +114,7 @@ public class Number_Formats
com.sun.star.beans.XPropertySet.class, xCellRange );
// Set number format to default currency
- xCellProp.setPropertyValue( "NumberFormat", new Integer(nCurrencyKey) );
+ xCellProp.setPropertyValue( "NumberFormat", Integer.valueOf(nCurrencyKey) );
// Get cell B3
com.sun.star.table.XCell xCell = maSheet.getCellByPosition( 1, 2 );
@@ -158,7 +158,7 @@ public class Number_Formats
// Set the new format at the cell
if ( nIndexKey != -1 )
- xCellProp.setPropertyValue( "NumberFormat", new Integer(nIndexKey) );
+ xCellProp.setPropertyValue( "NumberFormat", Integer.valueOf(nIndexKey) );
// Set column containing the example values to optimal width to show