From be1bb7b1ccee28be616b89cc95e97d656e78bbe3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 14:00:54 +0200 Subject: java: use Boolean.valueOf instead of instantiating Boolean objects Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74 --- embeddedobj/test/Container1/EmbedContApp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index 6eb9267f1e55..54f824c4957c 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -1314,7 +1314,7 @@ public class EmbedContApp extends Applet aMedDescr[0].Name = "URL"; aMedDescr[0].Value = (Object) aLinkURL; aMedDescr[1].Name = "ReadOnly"; - aMedDescr[1].Value = (Object) new Boolean( false ); + aMedDescr[1].Value = (Object) Boolean.FALSE; Object oEmbObj = xLinkCreator.createInstanceLink( m_xStorage, "EmbedSub", aMedDescr, new PropertyValue[0] ); xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj ); } @@ -1348,7 +1348,7 @@ public class EmbedContApp extends Applet aMedDescr[0].Name = "URL"; aMedDescr[0].Value = (Object) aFileURI; aMedDescr[1].Name = "ReadOnly"; - aMedDescr[1].Value = (Object) new Boolean( false ); + aMedDescr[1].Value = (Object) Boolean.FALSE; Object oEmbObj = xEmbedCreator.createInstanceInitFromMediaDescriptor( m_xStorage, "EmbedSub", aMedDescr, @@ -1460,7 +1460,7 @@ public class EmbedContApp extends Applet PropertyValue aProps[] = { new PropertyValue() }; aProps[0].Name = "StoreVisualReplacement"; - aProps[0].Value = new Boolean( m_bStoreVisRepl ); + aProps[0].Value = Boolean.valueOf( m_bStoreVisRepl ); xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0], aProps ); xPersist.saveCompleted( true ); -- cgit