From 06a1782dcd6f0483d71381845cb20e92a0003d27 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 7 Sep 2011 13:15:20 +0000 Subject: [PATCH] copy Collection to avoid ConcurrentModificationException git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1166163 13f79535-47bb-0310-9956-ffa450edef68 --- .../admin/repository/remote/DefaultRemoteRepositoryAdmin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ) -- 2.39.5