>     }
>  
>     @Provides
>     @Singleton
>     @Memoized
>     public Supplier<Map<URI, ? extends Hardware>> provideHardwaresMap(
> -           final Supplier<Set<? extends Hardware>> hardwares) {
> -      return new Supplier<Map<URI, ? extends Hardware>>() {
> -         @Override
> -         public Map<URI, ? extends Hardware> get() {
> -            return uniqueIndex(hardwares.get(), new Function<Hardware, 
> URI>() {
> -               @Override
> -               public URI apply(Hardware input) {
> -                  return input.getUri();
> -               }
> -            });
> -         }
> -      };
> +           AtomicReference<AuthorizationException> authException,
> +           final Supplier<Set<? extends Hardware>> hardwares,

since getUri() comes from the top level ResourceMetadata isn't is possible to 
consolidate these set-to-map transforms 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5412893

Reply via email to