Skip to content

Commit

Permalink
avoid odd concurrent modification :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed May 10, 2013
1 parent 5a4aeb5 commit 7d2e7d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hawtio-aether/src/main/java/io/hawt/aether/AetherFacade.java
Expand Up @@ -91,7 +91,9 @@ public AetherResult resolve(String groupId, String artifactId, String version, S
collectRequest.setRoot(dependency);

List<RemoteRepository> repos = getRemoteRepositories();
for (RemoteRepository repo : repos) {
RemoteRepository[] repoArray = new RemoteRepository[repos.size()];
repos.toArray(repoArray);
for (RemoteRepository repo : repoArray) {
collectRequest.addRepository(repo);
}
RepositorySystem system = getRepositorySystem();
Expand Down

0 comments on commit 7d2e7d4

Please sign in to comment.