diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 15:22:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:01 +0200 |
commit | f635ba068428c66cf979816606fea5ee6f241f78 (patch) | |
tree | 76a5a213960f64c3ed2b2d0f6edbf9fd2539a10c /bean | |
parent | 02ace92aba684238622610776b2c618aa04c7a02 (diff) |
java: remove some unnecessary intermediary object creation
Change-Id: Id4949fa08546e710fbf9bd0c7e3bf62979f29c83
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/comp/beans/LocalOfficeWindow.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java index 84c2a8a6a429..d481fbf21202 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java @@ -264,9 +264,8 @@ public class LocalOfficeWindow if (getNativeWindowSystemType() == SystemDependent.SYSTEM_XWINDOW ) { String vendor = System.getProperty("java.vendor"); - if ((vendor.equals("Sun Microsystems Inc.") - || vendor.equals("Oracle Corporation")) - && Boolean.parseBoolean(System.getProperty("sun.awt.xembedserver"))) + if ((vendor.equals("Sun Microsystems Inc.") || vendor.equals("Oracle Corporation")) + && Boolean.getBoolean("sun.awt.xembedserver")) { xembed = new NamedValue( "XEMBED", |