Ensure finalize() always calls super.finalize()

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@767722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-04-22 23:34:21 +00:00
parent 1d0b945d90
commit 5433ef9c77
1 changed files with 5 additions and 2 deletions

View File

@ -109,8 +109,11 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager {
@Override @Override
protected void finalize() throws Throwable { protected void finalize() throws Throwable {
shutdown(); try {
super.finalize(); shutdown();
} finally {
super.finalize();
}
} }
/** /**