diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /odk/examples/java/Spreadsheet/EuroAdaption.java | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'odk/examples/java/Spreadsheet/EuroAdaption.java')
-rw-r--r-- | odk/examples/java/Spreadsheet/EuroAdaption.java | 4 |
1 files changed, 2 insertions, 2 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) { |