[JAVA-1218] Remove DBPort.finalize() method Created: 13/May/14  Updated: 01/Aug/14  Resolved: 14/May/14

Status: Closed
Project: Java Driver
Component/s: Performance
Affects Version/s: None
Fix Version/s: 2.12.2

Type: Improvement Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The DBPort.finalize() method is unnecessary, as the connection pool takes care of closing DBPort instances. In general, finalizers increase the amount of work for the garbage collector, so they should not exist unless absolutely necessary.



 Comments   
Comment by Githook User [ 01/Aug/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1218: Remove DBPort.finalize() method, as there is already code in place to ensure that it is closed.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5eed87d59b2ec70f1c7d4a1d6f008901a9c4989d

Comment by Githook User [ 14/May/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1218: Remove DBPort.finalize() method, as there is already code in place to ensure that it is closed.
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/5eed87d59b2ec70f1c7d4a1d6f008901a9c4989d

Generated at Thu Feb 08 08:54:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.