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

@@ -214,7 +214,7 @@ public class ParcelBrowseNode extends PropertySet
}
else
{
String source = new String(provider.getScriptEditor().getTemplate().getBytes());
String source = provider.getScriptEditor().getTemplate();
String languageName = newName + "." + provider.getScriptEditor().getExtension();
String language = container.getLanguage();

View File

@@ -40,7 +40,7 @@ public class PathUtils {
}
public static String getOidForModel( XModel xModel )
{
String oid = new String("");
String oid = "";
if ( xModel != null )
{
try