> +      this.user = user;
> +      this.memory = checkNotNull(memory, "memory");
> +      this.memorySwap = checkNotNull(memorySwap, "memorySwap");
> +      this.cpuShares = checkNotNull(cpuShares, "cpuShares");
> +      this.attachStdin = checkNotNull(attachStdin, "attachStdin");
> +      this.attachStdout = checkNotNull(attachStdout, "attachStdout");
> +      this.attachStderr = checkNotNull(attachStderr, "attachStderr");
> +      this.exposedPorts = exposedPorts != null ? 
> ImmutableMap.copyOf(exposedPorts) : ImmutableMap.<String, Object> of();
> +      this.tty = checkNotNull(tty, "tty");
> +      this.openStdin = checkNotNull(openStdin, "openStdin");
> +      this.stdinOnce = checkNotNull(stdinOnce, "stdinOnce");
> +      this.env = env != null ? ImmutableList.copyOf(cmd) : 
> ImmutableList.<String> of();
> +      this.cmd = cmd != null ? ImmutableList.copyOf(cmd) : 
> ImmutableList.<String> of();
> +      this.dns = dns != null ? ImmutableList.copyOf(dns) : 
> ImmutableList.<String> of();
> +      this.imageId = checkNotNull(imageId, "imageId");
> +      this.volumes = volumes != null ? ImmutableMap.copyOf(volumes) : 
> ImmutableMap.<String, Object> of();

`volumes` is not nullable. Add a null check or annotate it properly.

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

Reply via email to