From 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:10:41 +0200 Subject: java: use 'Long.valueOf' instead of 'new Long' Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69 --- bean/com/sun/star/beans/LocalOfficeWindow.java | 4 ++-- bean/com/sun/star/comp/beans/LocalOfficeWindow.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bean') diff --git a/bean/com/sun/star/beans/LocalOfficeWindow.java b/bean/com/sun/star/beans/LocalOfficeWindow.java index 03a4bd4b90ca..ebae69da94f5 100644 --- a/bean/com/sun/star/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/beans/LocalOfficeWindow.java @@ -126,7 +126,7 @@ public class LocalOfficeWindow // set real parent XVclWindowPeer xVclWindowPeer = UnoRuntime.queryInterface( XVclWindowPeer.class, mWindow); - xVclWindowPeer.setProperty( "PluginParent", new Long(getNativeWindow()) ); + xVclWindowPeer.setProperty( "PluginParent", Long.valueOf(getNativeWindow()) ); bPeer = true; // show document window @@ -147,7 +147,7 @@ public class LocalOfficeWindow // set null parent XVclWindowPeer xVclWindowPeer = UnoRuntime.queryInterface( XVclWindowPeer.class, mWindow); - xVclWindowPeer.setProperty( "PluginParent", new Long(0) ); + xVclWindowPeer.setProperty( "PluginParent", Long.valueOf(0) ); bPeer = false; } } diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java index e82061737c75..0fb6f9d8e722 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java @@ -151,7 +151,7 @@ public class LocalOfficeWindow // set null parent XVclWindowPeer xVclWindowPeer = UnoRuntime.queryInterface( XVclWindowPeer.class, mWindow); - xVclWindowPeer.setProperty( "PluginParent", new Long(0) ); + xVclWindowPeer.setProperty( "PluginParent", Long.valueOf(0) ); bPeer = false; } } @@ -257,7 +257,7 @@ public class LocalOfficeWindow { NamedValue window = new NamedValue( - "WINDOW", new Any(new Type(Long.class), new Long(getNativeWindow()))); + "WINDOW", new Any(new Type(Long.class), Long.valueOf(getNativeWindow()))); NamedValue xembed = new NamedValue( "XEMBED", new Any(new Type(Boolean.class), Boolean.FALSE)); -- cgit v1.2.3