fix Inefficient String Buffering

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-31 14:15:52 +00:00
parent 24f81539f8
commit eabbeb562e
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ public class ProxyDownloadException
private static String constructMessage( String message, Map<String, Exception> failures )
{
StringBuilder msg = new StringBuilder( message + ":" );
StringBuilder msg = new StringBuilder( message );
msg.append( ":" );
for ( Map.Entry<String, Exception> entry : failures.entrySet() )
{
msg.append( "\n\t" ).append( entry.getKey() ).append( ": " ).append( entry.getValue().getMessage() );