summaryrefslogtreecommitdiff
path: root/bean/com/sun/star
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 14:00:54 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:16 +0200
commitbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch)
treed67d16a68d1469b5096a27c743c4b0326a0c0ebe /bean/com/sun/star
parent56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff)
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'bean/com/sun/star')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java4
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
index 2cbde53431f8..e82061737c75 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
@@ -259,7 +259,7 @@ public class LocalOfficeWindow
NamedValue window = new NamedValue(
"WINDOW", new Any(new Type(Long.class), new Long(getNativeWindow())));
NamedValue xembed = new NamedValue(
- "XEMBED", new Any(new Type(Boolean.class), new Boolean(false)));
+ "XEMBED", new Any(new Type(Boolean.class), Boolean.FALSE));
if (getNativeWindowSystemType() == SystemDependent.SYSTEM_XWINDOW )
{
@@ -270,7 +270,7 @@ public class LocalOfficeWindow
{
xembed = new NamedValue(
"XEMBED",
- new Any(new Type(Boolean.class), new Boolean(true)));
+ new Any(new Type(Boolean.class), Boolean.TRUE));
}
}
return new Any(
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index b6504fa733bd..1f3612ffa166 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -837,7 +837,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
}
// notify change
- firePropertyChange( aProperty, new Boolean(bOldValue), new Boolean(bNewValue) );
+ firePropertyChange( aProperty, Boolean.valueOf(bOldValue), Boolean.valueOf(bNewValue) );
}
}