Skip to content

Commit 5eed87d

Browse files
committed
JAVA-1218: Remove DBPort.finalize() method, as there is already code in place to ensure that it is closed.
1 parent 0e20f72 commit 5eed87d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/com/mongodb/DBPort.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,6 @@ public String toString(){
308308
return "{DBPort " + host() + "}";
309309
}
310310

311-
@Override
312-
protected void finalize() throws Throwable{
313-
super.finalize();
314-
close();
315-
}
316-
317311
ActiveState getActiveState() {
318312
isTrue("open", !closed);
319313
return _activeState;

0 commit comments

Comments
 (0)