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

Improve the documentation of the ReferenceCounted interface

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.0
    • None
    • Internal
    • None
    • Fully Compatible
    • Not Needed

    Description

      Currently the documentation of the ReferenceCounted.getCount method is not very clear, especially in stating that reference count starts at 0. We need to explain that the count values ∈ [0, +∞), but a new ReferenceCounted object must always be created as retained, i.e., with the count equal to 1.

      Attachments

        Activity

          People

            valentin.kovalenko@mongodb.com Valentin Kavalenka
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: