summaryrefslogtreecommitdiff
path: root/odk/examples/java/Text/GraphicsInserter.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /odk/examples/java/Text/GraphicsInserter.java
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'odk/examples/java/Text/GraphicsInserter.java')
-rw-r--r--odk/examples/java/Text/GraphicsInserter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/java/Text/GraphicsInserter.java b/odk/examples/java/Text/GraphicsInserter.java
index 0bcdcfa12443..82a263866e57 100644
--- a/odk/examples/java/Text/GraphicsInserter.java
+++ b/odk/examples/java/Text/GraphicsInserter.java
@@ -150,17 +150,17 @@ public class GraphicsInserter {
// Setting the horizontal position
xPropSet.setPropertyValue( "HoriOrientPosition",
- new Integer( 5500 ) );
+ Integer.valueOf( 5500 ) );
// Setting the vertical position
xPropSet.setPropertyValue( "VertOrientPosition",
- new Integer( 4200 ) );
+ Integer.valueOf( 4200 ) );
// Setting the width
- xPropSet.setPropertyValue( "Width", new Integer( 4400 ) );
+ xPropSet.setPropertyValue( "Width", Integer.valueOf( 4400 ) );
// Setting the height
- xPropSet.setPropertyValue( "Height", new Integer( 4000 ) );
+ xPropSet.setPropertyValue( "Height", Integer.valueOf( 4000 ) );
} catch ( Exception exception ) {
System.out.println( "Couldn't set property 'GraphicURL'" );
exception.printStackTrace( printwriterLog );