>        this.cookbookName = cookbookName;
> -      Iterables.addAll(this.resources, resources);
> -      Iterables.addAll(this.templates, templates);
> -      Iterables.addAll(this.libraries, libraries);
> +      this.resources = resources == null ? ImmutableSet.<Resource> of() : 
> ImmutableSet.copyOf(resources);

Factor this pattern out into a method `copyOfOrEmpty`, or something like that?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/10/files#r6039832

Reply via email to