Skip to content

Commit e9f7444

Browse files
committed
Deprecate DB#getCollectionFromString
JAVA-3031
1 parent c2c7f6a commit e9f7444

File tree

1 file changed

+2
-0
lines changed
  • driver-legacy/src/main/com/mongodb

1 file changed

+2
-0
lines changed

driver-legacy/src/main/com/mongodb/DB.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ public void dropDatabase() {
254254
*
255255
* @param collectionName the name of the collection
256256
* @return the collection
257+
* @deprecated Prefer {@link #getCollection(String)}
257258
*/
259+
@Deprecated
258260
public DBCollection getCollectionFromString(final String collectionName) {
259261
return getCollection(collectionName);
260262
}

0 commit comments

Comments
 (0)