removed the finalizer from basePayloadEnclosingImpl. closing the stream will be handled individually by the stream wrapper

This commit is contained in:
Alex Yarmula 2010-03-25 12:26:17 -07:00
parent de359a52cc
commit 13da9016e0
1 changed files with 0 additions and 6 deletions

View File

@ -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());