]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1871] ConcurrentModificationException in DefaultRepositoryProxyConnectors
authorOlivier Lamy <olamy@apache.org>
Mon, 24 Nov 2014 22:44:14 +0000 (09:44 +1100)
committerOlivier Lamy <olamy@apache.org>
Mon, 24 Nov 2014 22:44:14 +0000 (09:44 +1100)
create a copy to avoid ConcurrentModificationException

archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java

index 6862149389863752e4ae7d6149ca76581ae1d942..2095b6bd7c6dec7da534c4d0b6657f8bd5ebb43c 100644 (file)
@@ -1262,7 +1262,7 @@ public class DefaultRepositoryProxyConnectors
         }
 
         Collections.sort( ret, ProxyConnectorOrderComparator.getInstance() );
-        return ret;
+        return new ArrayList<>( ret );
 
     }