Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1218

Remove DBPort.finalize() method

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.12.2
    • None
    • Performance
    • None

    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.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: