> + break; > + } > + } > + } catch (Exception ex) { > + throw Throwables.propagate(ex); > + } > + if (versionEndpointUri == null) > + throw new HttpException("Glance endpoint does not > support API version: " + apiVersion); > + return versionEndpointUri; > + } > + }); > + } > + > + @Override > + public URI apply(Object from) { > + checkArgument(from != null && from instanceof String, "you must > specify a zone, as a String argument");
We don't need the `!= null` check, null is not `instanceof String` --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/82/files#r10724109