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

Clarify deprecation of DB in 3.x

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: API, Documentation
    • Labels:
      None
    • Sprint:
      Java Sprint 24, Java Sprint 25

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: