jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rongallagher <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-1072 (#912)
Date Wed, 03 Feb 2016 13:55:40 GMT
>        public Role build() {
> -         return new Role(name, description, defaultAttributes.build(), runList.build(),
overrideAttributes.build());
> +         // Assemble an immutable envRunList where each entry is an immutable list of
entries.
> +         ImmutableMap.Builder<String, List<String>> immutableEnvRunList
= ImmutableMap.builder();
> +         for (Entry<String, List<String>> e : envRunList.entrySet()) {
> +            ImmutableList.Builder<String> value = ImmutableList.builder();
> +            value.addAll(e.getValue());
> +            immutableEnvRunList.put(e.getKey(), value.build());

I'll update the pull request with the more functional approach you provided.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/912/files#r51722658
Mime
View raw message