performance issue: removed instantiation of new String object by copying an existing string.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1583366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Cédric Walter 2014-03-31 16:16:52 +00:00
parent 730deb782b
commit 1c987c38e6
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class RecordUtil
{
String type = getBitFieldType( name, bitMask, parentType );
String retVal = new String();
String retVal = "";
if ( withType.equals( "true" ) )
{
retVal = type + " ";

View File

@ -144,6 +144,6 @@ public class Xst
@Override
public String toString()
{
return new String( "Xst [" + _cch + "; " + _rgtchar + "]" );
return "Xst [" + _cch + "; " + _rgtchar + "]";
}
}