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

Delete BatchCursor.tryNext and AsyncBatchCursor.tryNext methods

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

      1. com.mongodb.reactivestreams.client.internal.BatchCursor.tryNext and com.mongodb.internal.async.AsyncBatchCursor are internal.
      2. BatchCursor.tryNext is not called.
      3. AsyncBatchCursor.tryNext is called only from
        1. BatchCursor.tryNext, which is not called from anywhere else
        2. implementations of AsyncBatchCursor.tryNext, which are only called from BatchCursor.tryNext, which is not called.

      It follows from the above that we can safely delete the aforementioned tryNext methods.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: