]> source.dussan.org Git - archiva.git/commitdiff
fix Inefficient String Buffering
authorOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:15:52 +0000 (14:15 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:15:52 +0000 (14:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427134 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ProxyDownloadException.java

index 96efd6f385b696019dfeeec9310a12eceef6a461..94f64dfd690e6400ef122ebd7cc64ba891308532 100644 (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() );