Skip to content

Commit a00d92b

Browse files
committed
Deprecate ClusterSettings#description property
JAVA-3041
1 parent d076619 commit a00d92b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver-core/src/main/com/mongodb/connection/ClusterSettings.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.mongodb.connection;
1818

1919
import com.mongodb.ConnectionString;
20+
import com.mongodb.MongoClientSettings;
2021
import com.mongodb.ServerAddress;
2122
import com.mongodb.annotations.Immutable;
2223
import 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
}

0 commit comments

Comments
 (0)