Skip to content

Commit 0fa59ef

Browse files
committed
Deprecate MongoClientOptions#description property
JAVA-3042
1 parent a00d92b commit 0fa59ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ public static Builder builder(final MongoClientOptions options) {
223223
* <p>Default is null.</p>
224224
*
225225
* @return the description
226+
* @deprecated Prefer {@link #getApplicationName()}
226227
*/
228+
@Deprecated
227229
public String getDescription() {
228230
return description;
229231
}
@@ -1053,7 +1055,9 @@ public Builder(final MongoClientOptions options) {
10531055
* @param description the description of this MongoClient
10541056
* @return {@code this}
10551057
* @see com.mongodb.MongoClientOptions#getDescription()
1058+
* @deprecated Prefer {@link MongoClientOptions.Builder#applicationName(String)}
10561059
*/
1060+
@Deprecated
10571061
public Builder description(final String description) {
10581062
this.description = description;
10591063
return this;

0 commit comments

Comments
 (0)