> 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