We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e38c1 commit bd068d5Copy full SHA for bd068d5
src/main/com/mongodb/DBCollection.java
@@ -35,9 +35,9 @@
35
/** This class provides a skeleton implementation of a database collection.
36
* <p>A typical invocation sequence is thus
37
* <blockquote><pre>
38
- * Mongo mongo = new Mongo( new DBAddress( "localhost", 127017 ) );
39
- * DB db = mongo.getDB( "mydb" );
40
- * DBCollection collection = db.getCollection( "test" );
+ * MongoClient mongoClient = new MongoClient(new ServerAddress("localhost", 27017));
+ * DB db = mongo.getDB("mydb");
+ * DBCollection collection = db.getCollection("test");
41
* </pre></blockquote>
42
* @dochub collections
43
*/
0 commit comments