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/EuroAdaption.java4
-rw-r--r--odk/examples/java/Spreadsheet/SCalc.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/java/Spreadsheet/EuroAdaption.java b/odk/examples/java/Spreadsheet/EuroAdaption.java
index 498f18800dd3..870c20978245 100644
--- a/odk/examples/java/Spreadsheet/EuroAdaption.java
+++ b/odk/examples/java/Spreadsheet/EuroAdaption.java
@@ -213,7 +213,7 @@ public class EuroAdaption {
// set the new numberformat to the cellrange DM->EUR
xCellProp.setPropertyValue( "NumberFormat",
- new Integer( iNewNumberFormat ) );
+ Integer.valueOf( iNewNumberFormat ) );
// interate over all cells from the cellrange with an
// content and use the DM/EUR factor
@@ -297,7 +297,7 @@ public class EuroAdaption {
XPropertySet xCellProp = UnoRuntime.queryInterface(
XPropertySet.class, xCellRange );
xCellProp.setPropertyValue( "NumberFormat",
- new Integer(iNumberFormatKey) );
+ Integer.valueOf(iNumberFormatKey) );
}
}
catch( Exception e) {
diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java
index a303fafabc65..0a8b705c7b17 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -139,15 +139,15 @@ public class SCalc {
XPropertySet oCPS1 = UnoRuntime.queryInterface(
XPropertySet.class, oInt1 );
oCPS1.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
- oCPS1.setPropertyValue("CellBackColor",new Integer(6710932));
- oCPS1.setPropertyValue("CharColor",new Integer(16777215));
+ oCPS1.setPropertyValue("CellBackColor",Integer.valueOf(6710932));
+ oCPS1.setPropertyValue("CharColor",Integer.valueOf(16777215));
XInterface oInt2 = (XInterface) oDocMSF.createInstance(
"com.sun.star.style.CellStyle");
oStyleFamilyNameContainer.insertByName("My Style2", oInt2);
XPropertySet oCPS2 = UnoRuntime.queryInterface(
XPropertySet.class, oInt2 );
oCPS2.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
- oCPS2.setPropertyValue("CellBackColor",new Integer(13421823));
+ oCPS2.setPropertyValue("CellBackColor",Integer.valueOf(13421823));
} catch (Exception e) {
e.printStackTrace(System.err);
}