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

Filters.nearSphere lacks Nullable annotations

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.11.0
    • 3.10.1
    • Builders
    • None
    • 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

            jeff.yemin@mongodb.com Jeffrey Yemin
            fluidsonic Marc Knaup
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: