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

Improve the documentation of the ReferenceCounted interface

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • Fully Compatible
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: