summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-11-25 09:44:14 +1100
committerOlivier Lamy <olamy@apache.org>2014-11-25 09:44:14 +1100
commit0148a725c711cd4040f141eba3d476648089318a (patch)
treeb2db1f99a9c34413a2b6e04323bf5391e9068a81
parenteeb51f8c35139d838436623e07b14b22ce1a071f (diff)
downloadarchiva-0148a725c711cd4040f141eba3d476648089318a.tar.gz
archiva-0148a725c711cd4040f141eba3d476648089318a.zip
[MRM-1871] ConcurrentModificationException in DefaultRepositoryProxyConnectors
create a copy to avoid ConcurrentModificationException
-rw-r--r--archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java2
1 files changed, 1 insertions, 1 deletions
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 );
}