> @@ -67,13 +63,7 @@ public void handleError(HttpCommand command, HttpResponse
> response) {
> break;
> }
> } finally {
> - if (response.getPayload() != null) {
> - try {
> - Closeables.close(response.getPayload().getInput(), true);
> - } catch (IOException e) {
> - throw propagate(e);
> - }
> - }
> + closeQuietly(response.getPayload());
nope. the true flag meant swallow IOE, so this form was accidentally redundant.
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/io/Closeables.html#close(java.io.Closeable,%20boolean)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/588/files#r19581119