Use StringBuilder

This commit is contained in:
Stephen Connolly 2014-01-06 10:31:04 +00:00
parent 71f73b29fa
commit c30c76e423
2 changed files with 2 additions and 2 deletions

View File

@ -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[" );

View File

@ -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 );