mirror of https://github.com/apache/jclouds.git
Close Payload directly
This commit is contained in:
parent
0880245150
commit
614e262ce0
|
@ -84,8 +84,7 @@ public class CloudSigmaErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,8 +82,7 @@ public class CloudStackErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,8 +77,7 @@ public class DeltacloudErrorHandler implements HttpErrorHandler {
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,8 +82,7 @@ public class ElasticStackErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,9 +83,7 @@ public class AbiquoErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null) {
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
}
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,8 +74,7 @@ public class VPDCErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,8 +74,7 @@ public class GleSYSErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,8 +70,7 @@ public class SoftLayerErrorHandler implements HttpErrorHandler {
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,8 +66,7 @@ public class BoxDotNetErrorHandler implements HttpErrorHandler {
|
|||
break;
|
||||
}
|
||||
} finally {
|
||||
if (response.getPayload() != null)
|
||||
Closeables.closeQuietly(response.getPayload().getInput());
|
||||
Closeables.closeQuietly(response.getPayload());
|
||||
command.setException(exception);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue