> +            throw Throwables.propagate(e);
> +         }
> +         command.setException(exception);
> +      }
> +   }
> +
> +   public String parseMessage(HttpResponse response) {
> +      if (response.getPayload() == null)
> +         return null;
> +      try {
> +         return Strings2.toString(response.getPayload());
> +      } catch (IOException e) {
> +         throw Throwables.propagate(e);
> +      } finally {
> +         try {
> +            response.getPayload().getInput().close();

The payload itself is already closeable. Close the payload to avoid the 
deprecation warning?

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

Reply via email to