java: no need to instantiate String objects directly

Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
This commit is contained in:
Noel Grandin
2014-08-12 15:27:21 +02:00
parent c552aac9f8
commit 4b4bff3402
60 changed files with 132 additions and 150 deletions

View File

@ -206,7 +206,7 @@ public class ProtocolHandlerAddon {
// describe window properties.
WindowDescriptor aDescriptor = new WindowDescriptor();
aDescriptor.Type = WindowClass.MODALTOP;
aDescriptor.WindowServiceName = new String( "infobox" );
aDescriptor.WindowServiceName = "infobox";
aDescriptor.ParentIndex = -1;
aDescriptor.Parent = UnoRuntime.queryInterface(
XWindowPeer.class, m_xFrame.getContainerWindow());