From 4b4bff34027cca49fd13e82d33d1b399848838fa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:27:21 +0200 Subject: java: no need to instantiate String objects directly Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03 --- embeddedobj/test/Container1/EmbedContApp.java | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'embeddedobj/test') diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index b0b2708d5467..94a4e99e9367 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -1524,23 +1524,6 @@ public class EmbedContApp extends Applet Object oEmbObj = null; if ( xNameAccess.hasByName( "LinkName" ) && xTargetStorage.isStreamElement( "LinkName" ) ) { - /* - // OOo links will not be tested until they have correct persistence - XStream xLinkStream = xTargetStorage.openStreamElement( "LinkName", ElementModes.ELEMENT_READ ); - if ( xLinkStream != null ) - { - XInputStream xInStream = xLinkStream.getInputStream(); - if ( xInStream != null ) - { - byte[][] pBuff = new byte[1][0]; - int nRead = xInStream.readBytes( pBuff, 1000 ); - m_aLinkURI = new String( pBuff[0] ); - xInStream.closeInput(); - oEmbObj = xEmbedCreator.createInstanceLink( m_aLinkURI ); - m_bLinkObj = true; - } - } - */ } else oEmbObj = xEmbedCreator.createInstanceInitFromEntry( xTargetStorage, -- cgit v1.2.3