File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
driver-core/src/main/com/mongodb/connection Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1717package com .mongodb .connection ;
1818
1919import com .mongodb .ConnectionString ;
20+ import com .mongodb .MongoClientSettings ;
2021import com .mongodb .ServerAddress ;
2122import com .mongodb .annotations .Immutable ;
2223import com .mongodb .annotations .NotThreadSafe ;
@@ -125,7 +126,9 @@ public Builder applySettings(final ClusterSettings clusterSettings) {
125126 *
126127 * @param description the user defined description of the MongoClient
127128 * @return this
129+ * @deprecated Prefer {@link com.mongodb.MongoClientSettings.Builder#applicationName(String)}
128130 */
131+ @ Deprecated
129132 public Builder description (final String description ) {
130133 this .description = description ;
131134 return this ;
@@ -322,7 +325,9 @@ public ClusterSettings build() {
322325 * Gets the user defined description of the MongoClient.
323326 *
324327 * @return the user defined description of the MongoClient
328+ * @deprecated Prefer {@link MongoClientSettings#getApplicationName()}
325329 */
330+ @ Deprecated
326331 public String getDescription () {
327332 return description ;
328333 }
You can’t perform that action at this time.
0 commit comments