> @@ -149,7 +149,8 @@ protected String createOrImportKeyPair(String region,
> String group, TemplateOpti
> RegionAndName regionAndGroup = new RegionAndName(region, group);
> KeyPair keyPair;
> // make sure that we don't request multiple keys simultaneously
> - synchronized (credentialsMap) {
> + // TODO: useless synchronization
> + /*synchronized (credentialsMap)*/ {
`ConcurrentMap` does not use the object mutex that `synchronized` uses; these
are two different mechanisms.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/498/files#r16815972