From eabbeb562e2346e5067276f9a77608389cb6dae3 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 31 Dec 2012 14:15:52 +0000 Subject: [PATCH] fix Inefficient String Buffering git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427134 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/archiva/policies/ProxyDownloadException.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() );