From ff0ad0493ee1729c726587f667761b04101d774c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:09:06 +0200 Subject: java: use 'Integer.valueOf' instead of 'new Integer' Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940 --- odk/examples/DevelopersGuide/Drawing/PresentationDemo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odk/examples/DevelopersGuide/Drawing/PresentationDemo.java') 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 ) { -- cgit