From: Olivier Lamy Date: Mon, 31 Dec 2012 14:15:52 +0000 (+0000) Subject: fix Inefficient String Buffering X-Git-Tag: archiva-1.4-M4~334 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eabbeb562e2346e5067276f9a77608389cb6dae3;p=archiva.git fix Inefficient String Buffering git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427134 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ProxyDownloadException.java b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ProxyDownloadException.java index 96efd6f38..94f64dfd6 100644 --- a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ProxyDownloadException.java +++ b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ProxyDownloadException.java @@ -51,7 +51,8 @@ public class ProxyDownloadException private static String constructMessage( String message, Map failures ) { - StringBuilder msg = new StringBuilder( message + ":" ); + StringBuilder msg = new StringBuilder( message ); + msg.append( ":" ); for ( Map.Entry entry : failures.entrySet() ) { msg.append( "\n\t" ).append( entry.getKey() ).append( ": " ).append( entry.getValue().getMessage() );