> +   protected Gson gson;
> +
> +   @Inject
> +   public BindQueryRequestPayload() {
> +      gson = new GsonBuilder().disableHtmlEscaping().create();
> +   }
> +
> +   @Override
> +   public <R extends HttpRequest> R bindToRequest(R request, Map<String, 
> Object> postParams) {
> +      Map<String, Object> map = Maps.newHashMap();
> +
> +      ComplexQueryOptions options = 
> (ComplexQueryOptions)postParams.get("options");
> +
> +      if (options != null) {
> +
> +         if (!isNullOrEmptyString(options.getFilter())) {

Fortunately, there is a utility method `Strings.isNullOrEmpty(value)` that can 
be used here instead. 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/166/files#r20578452

Reply via email to