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:
parent
730deb782b
commit
1c987c38e6
@ -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 + " ";
|
||||
|
@ -144,6 +144,6 @@ public class Xst
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return new String( "Xst [" + _cch + "; " + _rgtchar + "]" );
|
||||
return "Xst [" + _cch + "; " + _rgtchar + "]";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user