Skip to content

Commit 1950ee6

Browse files
committed
Small consistency improvements suggested by AI
1 parent b57be44 commit 1950ee6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

driver-core/src/main/com/mongodb/ConnectionString.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ public WriteConcern getWriteConcern() {
14741474
* getRetryWrites() method, which returned a primitive {@code boolean} value, and didn't allow callers to differentiate
14751475
* between a false value and an unset value.
14761476
*
1477-
* @return the retryWrites value, or null if unset
1477+
* @return the {@code retryWrites} value, or {@code null} if unset
14781478
* @see #getMaxAdaptiveRetries()
14791479
* @since 3.9
14801480
* @mongodb.server.release 3.6
@@ -1488,7 +1488,7 @@ public Boolean getRetryWritesValue() {
14881488
* Gets whether attempts to execute read commands should be retried if they fail due to a retryable error.
14891489
* See {@link MongoClientSettings.Builder#retryReads(boolean)} for more information.
14901490
*
1491-
* @return the retryReads value
1491+
* @return the {@code retryReads} value, or {@code null} if unset
14921492
* @see #getMaxAdaptiveRetries()
14931493
* @since 3.11
14941494
* @mongodb.server.release 3.6
@@ -1502,7 +1502,7 @@ public Boolean getRetryReads() {
15021502
* Gets the maximum number of retry attempts when encountering a retryable overload error.
15031503
* See {@link MongoClientSettings.Builder#maxAdaptiveRetries(Integer)} for more information.
15041504
*
1505-
* @return The {@code maxAdaptiveRetries} value.
1505+
* @return The {@code maxAdaptiveRetries} value, or {@code null} if unset.
15061506
* @since 5.7
15071507
*/
15081508
@Beta(Reason.CLIENT)

driver-core/src/main/com/mongodb/MongoClientSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ public ReadConcern getReadConcern() {
945945
}
946946

947947
/**
948-
* The codec registry to use, or null if not set.
948+
* The codec registry to use.
949949
*
950950
* @return the codec registry
951951
*/

0 commit comments

Comments
 (0)