> -
> "input %s is not a valid CIDR",
> -
> input);
> - return input;
> - }
> - }));
> + for (String cidrBlock : cidrBlocks) {
> + checkArgument(isCidrFormat(cidrBlock), "%s is not a valid CIDR",
> cidrBlock);
> + }
> + Iterables.addAll(this.cidrBlocks, cidrBlocks);
> + return this;
> + }
> +
> + /**
> + * @see IpPermission#getPorts()
> + */
> + public Builder addPort(Integer port) {
easier to just make port an int? (removes checkNull etc)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/145/files#r6415048