summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Drawing/PresentationDemo.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/DevelopersGuide/Drawing/PresentationDemo.java
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'odk/examples/DevelopersGuide/Drawing/PresentationDemo.java')
-rw-r--r--odk/examples/DevelopersGuide/Drawing/PresentationDemo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java b/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
index bfa352016488..82f3cf3cd072 100644
--- a/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
@@ -118,7 +118,7 @@ public class PresentationDemo
after the animation has been finished */
xShapePropSet.setPropertyValue( "DimHide", Boolean.FALSE );
xShapePropSet.setPropertyValue( "DimPrevious", Boolean.TRUE );
- xShapePropSet.setPropertyValue( "DimColor", new Integer( 0xff0000 ) );
+ xShapePropSet.setPropertyValue( "DimColor", Integer.valueOf( 0xff0000 ) );
// set the slide transition for the second page
@@ -189,7 +189,7 @@ public class PresentationDemo
XPropertySet xPresPropSet = UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
xPresPropSet.setPropertyValue( "IsEndless", Boolean.TRUE );
xPresPropSet.setPropertyValue( "IsAlwaysOnTop", Boolean.TRUE );
- xPresPropSet.setPropertyValue( "Pause", new Integer( 0 ) );
+ xPresPropSet.setPropertyValue( "Pause", Integer.valueOf( 0 ) );
xPresentation.start();
}
catch( Exception ex )
@@ -218,8 +218,8 @@ public class PresentationDemo
XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, xPage );
xPropSet.setPropertyValue( "Effect", eEffect );
xPropSet.setPropertyValue( "Speed", eSpeed );
- xPropSet.setPropertyValue( "Change", new Integer( nChange ) );
- xPropSet.setPropertyValue( "Duration", new Integer( nDuration ) );
+ xPropSet.setPropertyValue( "Change", Integer.valueOf( nChange ) );
+ xPropSet.setPropertyValue( "Duration", Integer.valueOf( nDuration ) );
}
catch( Exception ex )
{