> @@ -321,6 +341,24 @@ public CreateServerOptions
> securityGroupNames(Iterable<String> securityGroupName
> return this;
> }
>
> + /**
> + *
> + * @see #getNetworks
> + */
> + public CreateServerOptions networks(String... networks) {
> + return networks(ImmutableSet.copyOf(checkNotNull(networks, "network
> should not be empty")));
> + }
> +
> + /**
> + * @see #getNetworks
> + */
> + public CreateServerOptions networks(Iterable<String> networks) {
> + for (String network : checkNotNull(networks, "networks"))
> + checkNotNull(emptyToNull(network), "all networks must be
> non-empty");
The code or the result? The result should be the same - you'll get an NPE if
* networks is null
* any network in networks is empty or null
Or do you mean keeping the _error message_ the same?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/72/files#r5465798