Deprecate com.mongodb.DB constructor taking a com.mongodb.Mongo
With the deprecation of com.mongodb.Mongo this constructor is also now
deprecated as well so that the Mongo class can be removed in the next
major release.
@@ -97,7 +97,9 @@ public class DB {
*
* @param mongo the mongo instance
* @param name the database name - must not be empty and cannot contain spaces
+ * @deprecated Prefer {@link MongoClient#getDB(String)}
*/
+ @Deprecated
public DB(final Mongo mongo, final String name) {
this(mongo, name, mongo.createOperationExecutor());
}
