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

DBCollection unused code

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • API
    • None

    Description

      The DBCollection methods

      • getDocumentCodec
      • getOptionHolder

      Are package-private and unused - should they be deleted?

      The getCount method getCount(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit, BsonValue) has an unused parameter, DBObject projection. Since this method is package-level, and even the javadoc says it's ignored, this could be deleted.

      The field NAMESPACE_KEY_NAME is never used, and private, and can be deleted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trisha.gee@10gen.com Trisha Gee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: