From: Olivier Lamy Date: Wed, 7 Sep 2011 13:15:20 +0000 (+0000) Subject: copy Collection to avoid ConcurrentModificationException X-Git-Tag: archiva-1.4-M1~364 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=06a1782dcd6f0483d71381845cb20e92a0003d27;p=archiva.git copy Collection to avoid ConcurrentModificationException git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1166163 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/remote/DefaultRemoteRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/remote/DefaultRemoteRepositoryAdmin.java index 99d80cf50..732a479a0 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/remote/DefaultRemoteRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/remote/DefaultRemoteRepositoryAdmin.java @@ -115,7 +115,8 @@ public class DefaultRemoteRepositoryAdmin // TODO use ProxyConnectorAdmin interface ? // [MRM-520] Proxy Connectors are not deleted with the deletion of a Repository. - List proxyConnectors = configuration.getProxyConnectors(); + List proxyConnectors = + new ArrayList( configuration.getProxyConnectors() ); for ( ProxyConnectorConfiguration proxyConnector : proxyConnectors ) { if ( StringUtils.equals( proxyConnector.getTargetRepoId(), repositoryId ) )