summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:10:41 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commit8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (patch)
tree87575bd76a2ce98793d2bb1773ddc4a9c4e5e41c /bean
parentff0ad0493ee1729c726587f667761b04101d774c (diff)
java: use 'Long.valueOf' instead of 'new Long'
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/beans/LocalOfficeWindow.java4
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java4
2 files changed, 4 insertions, 4 deletions
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));