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

Clarify deprecation of DB in 3.x

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: API, Documentation
    • None

      I'm quite confused as to whether DB is deprecated in favor of MongoDatabase. I see that Mongo.getDB is deprecated, but DB itself is not. It's quite confusing and duplicative to have both DB and a MongoDatabase. I think the answer is that one of them is deprecated. However, it hasn't been deprecated in the code and in fact my entire code base compiles fine without a single deprecation warning.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            chengas123 Ben McCann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: