From 0148a725c711cd4040f141eba3d476648089318a Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 25 Nov 2014 09:44:14 +1100 Subject: [PATCH] [MRM-1871] ConcurrentModificationException in DefaultRepositoryProxyConnectors create a copy to avoid ConcurrentModificationException --- .../apache/archiva/proxy/DefaultRepositoryProxyConnectors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java index 686214938..2095b6bd7 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -1262,7 +1262,7 @@ public class DefaultRepositoryProxyConnectors } Collections.sort( ret, ProxyConnectorOrderComparator.getInstance() ); - return ret; + return new ArrayList<>( ret ); } -- 2.39.5