Skip to content

Commit

Permalink
finalize method should be protected, not public
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1423128 13f79535-47bb-0310-9956-ffa450edef68
dkulp committed Dec 17, 2012
1 parent 58e2881 commit 4eaf0b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -197,7 +197,7 @@ public synchronized void close() throws IOException {
dispatch = null;
}
}
public void finalize() throws Throwable {
protected void finalize() throws Throwable {
super.finalize();
close();
}

0 comments on commit 4eaf0b6

Please sign in to comment.