> +
> + static class ServerStatusPredicate implements Predicate<String> {
> +
> + private final ProfitBricksApi api;
> + private final Server.Status expectedStatus;
> +
> + public ServerStatusPredicate(ProfitBricksApi api, Server.Status
> expectedStatus) {
> + this.api = checkNotNull(api, "api must not be null");
> + this.expectedStatus = checkNotNull(expectedStatus, "expectedStatus
> must not be null");
> + }
> +
> + @Override
> + public boolean apply(String input) {
> + String[] ids = input.split(",");
> +
> + checkNotNull(input, "server id");
Better check it before calling split? :)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/227/files#r51543571