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

Replace @Evolving with @Sealed where appropriate and possible

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.10.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None
    • Fully Compatible
    • Needed
    • Hide

      Let's mention in the What's new that the interfaces in com.mongodb.client.model.search API are now marked as `@Sealed` instead of being `@Evolving`.

      This change would have been breaking if the interfaces were not also marked with `@Beta`, but they are.

      Show
      Let's mention in the What's new that the interfaces in com.mongodb.client.model.search API are now marked as `@Sealed` instead of being `@Evolving`. This change would have been breaking if the interfaces were not also marked with `@Beta`, but they are.

      It makes sense for interfaces like MongoClient to be @Evolving, while for interfaces like SearchOptions @Sealed is a more appropriate annotation. Note also that replacing @Sealed with @Evolving is a backward-compatible change, while the opposite is not. See the doc changes in the linked PR for more details.

            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: