diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 14:00:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:16 +0200 |
commit | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch) | |
tree | d67d16a68d1469b5096a27c743c4b0326a0c0ebe /embeddedobj/test | |
parent | 56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff) |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'embeddedobj/test')
-rw-r--r-- | embeddedobj/test/Container1/EmbedContApp.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |