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

Builder method should accept List<? extends Bson> rather than List<Bson>

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.5.0
    • 3.1.0
    • Query Operations
    • None

    Description

      Builder methods should also accept List<? extends Bson> not just List<Bson> as arguments.

      Otherwise you have to use strange constructs like:
      Updates.combine(new ArrayList<Bson>(listOfDocuments))))

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            ChampS Ben [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: