From 13da9016e056f6a4dc59a577a19e1bd5f846735c Mon Sep 17 00:00:00 2001 From: Alex Yarmula Date: Thu, 25 Mar 2010 12:26:17 -0700 Subject: [PATCH] removed the finalizer from basePayloadEnclosingImpl. closing the stream will be handled individually by the stream wrapper --- .../org/jclouds/http/internal/BasePayloadEnclosingImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/main/java/org/jclouds/http/internal/BasePayloadEnclosingImpl.java b/core/src/main/java/org/jclouds/http/internal/BasePayloadEnclosingImpl.java index 2cf01e48b6..5641c22449 100644 --- a/core/src/main/java/org/jclouds/http/internal/BasePayloadEnclosingImpl.java +++ b/core/src/main/java/org/jclouds/http/internal/BasePayloadEnclosingImpl.java @@ -148,12 +148,6 @@ public abstract class BasePayloadEnclosingImpl implements PayloadEnclosing { this.contentLength = contentLength; } - @Override - protected void finalize() throws Throwable { - closeContentIfPresent(); - super.finalize(); - } - private void closeContentIfPresent() { if (getContent() != null) { Closeables.closeQuietly(getContent());