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 17
17
package com .mongodb .connection ;
18
18
19
19
import com .mongodb .ConnectionString ;
20
+ import com .mongodb .MongoClientSettings ;
20
21
import com .mongodb .ServerAddress ;
21
22
import com .mongodb .annotations .Immutable ;
22
23
import com .mongodb .annotations .NotThreadSafe ;
@@ -125,7 +126,9 @@ public Builder applySettings(final ClusterSettings clusterSettings) {
125
126
*
126
127
* @param description the user defined description of the MongoClient
127
128
* @return this
129
+ * @deprecated Prefer {@link com.mongodb.MongoClientSettings.Builder#applicationName(String)}
128
130
*/
131
+ @ Deprecated
129
132
public Builder description (final String description ) {
130
133
this .description = description ;
131
134
return this ;
@@ -322,7 +325,9 @@ public ClusterSettings build() {
322
325
* Gets the user defined description of the MongoClient.
323
326
*
324
327
* @return the user defined description of the MongoClient
328
+ * @deprecated Prefer {@link MongoClientSettings#getApplicationName()}
325
329
*/
330
+ @ Deprecated
326
331
public String getDescription () {
327
332
return description ;
328
333
}
You can’t perform that action at this time.
0 commit comments