> + @SerializedNames({ "name", "environment", "entrypoint", "hostname", > "bind_ports", "volumes", "restart_policy", "publish", "network_mode" }) > + public static ContainerImageInfo create(String name, Map<String, String> > environment, List<String> entryPoint, > + String hostName, > List<ImagePortsInfo> bindPorts, > + List<String> volumes, > Map<String, String> restartPolicy, > + boolean publish, String > networkMode) { > + > + if (environment == null) > + environment = Maps.newHashMap(); > + if (entryPoint == null) > + entryPoint = Lists.newArrayList(); > + if (bindPorts == null) > + bindPorts = Lists.newArrayList(); > + if (volumes == null) > + volumes = Lists.newArrayList(); > + if (restartPolicy == null) > + restartPolicy = Maps.newHashMap();
Using inline ifs here would be more readable? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/116/files#r22195599