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

Move duplicated fields into BaseFindAndModifyOperation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.6.0
    • None
    • Internal
    • None

    Description

       The various FindAnd<Something>Operations share the following fields:

       

          private BsonDocument filter;
          private BsonDocument projection;
          private BsonDocument sort;
          
          private Collation collation;
          private Bson hint;
          private String hintString;
          private BsonValue comment;
      

      These can be DRY'd up into the abstract base class.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: