Browse Source

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
tags/REL_3_11_BETA1
Cédric Walter 10 years ago
parent
commit
a242fea697

+ 1
- 1
src/scratchpad/src/org/apache/poi/hwpf/dev/RecordUtil.java 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 + " ";

+ 1
- 1
src/scratchpad/src/org/apache/poi/hwpf/model/Xst.java View File

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

Loading…
Cancel
Save