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

Filters.nearSphere lacks Nullable annotations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.10.1
    • Fix Version/s: 3.11.0
    • Component/s: Builders
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      maxDistance and minDistance of Filters.nearSphere overloads are optional but not marked as @Nullable which makes it impossible to pass null values from Kotlin

      Example:

      public static Bson nearSphere(final String fieldName, final Bson geometry, final Double maxDistance, final Double minDistance)

      should be

      public static Bson nearSphere(final String fieldName, final Bson geometry, @Nullable final Double maxDistance, }}{{@Nullable }}{{final Double minDistance)

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            fluidsonic Marc Knaup
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: