mirror of https://github.com/apache/jclouds.git
removed the finalizer from basePayloadEnclosingImpl. closing the stream will be handled individually by the stream wrapper
This commit is contained in:
parent
de359a52cc
commit
13da9016e0
|
@ -148,12 +148,6 @@ public abstract class BasePayloadEnclosingImpl implements PayloadEnclosing {
|
||||||
this.contentLength = contentLength;
|
this.contentLength = contentLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void finalize() throws Throwable {
|
|
||||||
closeContentIfPresent();
|
|
||||||
super.finalize();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void closeContentIfPresent() {
|
private void closeContentIfPresent() {
|
||||||
if (getContent() != null) {
|
if (getContent() != null) {
|
||||||
Closeables.closeQuietly(getContent());
|
Closeables.closeQuietly(getContent());
|
||||||
|
|
Loading…
Reference in New Issue