> + */
> +@Singleton
> +public class DockerComputeServiceAdapter implements
> + ComputeServiceAdapter<Container, Hardware, Image, Location> {
> +
> + @Resource
> + @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> + protected Logger logger = Logger.NULL;
> +
> + private final DockerApi api;
> + private final ApiContext<DockerApi> context;
> +
> + @Inject
> + public DockerComputeServiceAdapter(DockerApi api, ApiContext<DockerApi>
> context) {
> + this.api = checkNotNull(api, "api");
> + this.context = context;
Also check not null here.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10839229