Skip to content

Commit 596cb9e

Browse files
committed
Doc fixes in the async MongoDatabase javadoc
1 parent e34e979 commit 596cb9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

driver-async/src/main/com/mongodb/async/client/MongoDatabase.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public interface MongoDatabase {
6565
WriteConcern getWriteConcern();
6666

6767
/**
68-
* Get the read concern for the MongoCollection.
68+
* Get the read concern for the MongoDatabase.
6969
*
7070
* @return the {@link com.mongodb.ReadConcern}
7171
* @since 3.2
@@ -76,31 +76,31 @@ public interface MongoDatabase {
7676
/**
7777
* Create a new MongoDatabase instance with a different codec registry.
7878
*
79-
* @param codecRegistry the new {@link org.bson.codecs.configuration.CodecRegistry} for the collection
79+
* @param codecRegistry the new {@link org.bson.codecs.configuration.CodecRegistry} for the database
8080
* @return a new MongoDatabase instance with the different codec registry
8181
*/
8282
MongoDatabase withCodecRegistry(CodecRegistry codecRegistry);
8383

8484
/**
8585
* Create a new MongoDatabase instance with a different read preference.
8686
*
87-
* @param readPreference the new {@link com.mongodb.ReadPreference} for the collection
87+
* @param readPreference the new {@link com.mongodb.ReadPreference} for the database
8888
* @return a new MongoDatabase instance with the different readPreference
8989
*/
9090
MongoDatabase withReadPreference(ReadPreference readPreference);
9191

9292
/**
9393
* Create a new MongoDatabase instance with a different write concern.
9494
*
95-
* @param writeConcern the new {@link com.mongodb.WriteConcern} for the collection
95+
* @param writeConcern the new {@link com.mongodb.WriteConcern} for the database
9696
* @return a new MongoDatabase instance with the different writeConcern
9797
*/
9898
MongoDatabase withWriteConcern(WriteConcern writeConcern);
9999

100100
/**
101101
* Create a new MongoDatabase instance with a different read concern.
102102
*
103-
* @param readConcern the new {@link ReadConcern} for the collection
103+
* @param readConcern the new {@link ReadConcern} for the database
104104
* @return a new MongoDatabase instance with the different ReadConcern
105105
* @since 3.2
106106
* @mongodb.server.release 3.2

0 commit comments

Comments
 (0)