mirror of https://github.com/apache/maven.git
Use StringBuilder
This commit is contained in:
parent
71f73b29fa
commit
c30c76e423
|
@ -245,7 +245,7 @@ public class ArtifactTransferEvent
|
||||||
|
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
sb.append( "TransferEvent[" );
|
sb.append( "TransferEvent[" );
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public final class CLIReportingUtils
|
||||||
{
|
{
|
||||||
final String LS = System.getProperty( "line.separator" );
|
final String LS = System.getProperty( "line.separator" );
|
||||||
Properties properties = getBuildProperties();
|
Properties properties = getBuildProperties();
|
||||||
StringBuffer version = new StringBuffer();
|
StringBuilder version = new StringBuilder();
|
||||||
version.append( createMavenVersionString( properties ) ).append( LS );
|
version.append( createMavenVersionString( properties ) ).append( LS );
|
||||||
version.append( reduce( properties.getProperty( "distributionShortName" ) + " home: "
|
version.append( reduce( properties.getProperty( "distributionShortName" ) + " home: "
|
||||||
+ System.getProperty( "maven.home", "<unknown maven home>" ) ) ).append( LS );
|
+ System.getProperty( "maven.home", "<unknown maven home>" ) ) ).append( LS );
|
||||||
|
|
Loading…
Reference in New Issue