summaryrefslogtreecommitdiff
path: root/embeddedobj
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 /embeddedobj
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/test/Container1/EmbedContApp.java6
-rw-r--r--embeddedobj/test/Container1/NativeView.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java
index 54f824c4957c..b0b2708d5467 100644
--- a/embeddedobj/test/Container1/EmbedContApp.java
+++ b/embeddedobj/test/Container1/EmbedContApp.java
@@ -1453,7 +1453,7 @@ public class EmbedContApp extends Applet
{
Object aArgs[] = new Object[2];
aArgs[0] = aFileURI;
- aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );
+ aArgs[1] = Integer.valueOf( ElementModes.ELEMENT_READWRITE );
Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );
@@ -1503,7 +1503,7 @@ public class EmbedContApp extends Applet
oStorageFactory );
Object aArgs[] = new Object[2];
aArgs[0] = aFileURI;
- aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );
+ aArgs[1] = Integer.valueOf( ElementModes.ELEMENT_READWRITE );
Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );
@@ -1631,7 +1631,7 @@ public class EmbedContApp extends Applet
{
Object aArgs[] = new Object[2];
aArgs[0] = aFileURI;
- aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );
+ aArgs[1] = Integer.valueOf( ElementModes.ELEMENT_READWRITE );
Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );
diff --git a/embeddedobj/test/Container1/NativeView.java b/embeddedobj/test/Container1/NativeView.java
index a28a17d9ea85..dcc4b6b8fca6 100644
--- a/embeddedobj/test/Container1/NativeView.java
+++ b/embeddedobj/test/Container1/NativeView.java
@@ -137,7 +137,7 @@ public class NativeView extends java.awt.Canvas
{
if( maHandle == null )
{
- maHandle = new Integer( (int )getNativeWindow() );
+ maHandle = Integer.valueOf( (int )getNativeWindow() );
maSystem = getNativeWindowSystemType();
}
return maHandle;