diff options
author | Olivier Lamy <olamy@apache.org> | 2014-11-25 09:44:14 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-11-25 09:44:14 +1100 |
commit | 0148a725c711cd4040f141eba3d476648089318a (patch) | |
tree | b2db1f99a9c34413a2b6e04323bf5391e9068a81 | |
parent | eeb51f8c35139d838436623e07b14b22ce1a071f (diff) | |
download | archiva-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.java | 2 |
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 ); } |