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

Delete BatchCursor.tryNext and AsyncBatchCursor.tryNext methods

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.3.0
    • None
    • Internal
    • None
    • Fully Compatible
    • Not Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: