Skip to content

Commit 36ecbf9

Browse files
committed
remove annotation
1 parent 0e00c90 commit 36ecbf9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

driver-core/src/main/com/mongodb/internal/time/ExponentialBackoff.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.mongodb.internal.time;
1818

19-
import com.mongodb.annotations.NotThreadSafe;
2019
import com.mongodb.internal.VisibleForTesting;
2120

2221
import java.util.concurrent.ThreadLocalRandom;
@@ -27,7 +26,6 @@
2726
/**
2827
* Implements exponential backoff with jitter for retry scenarios.
2928
*/
30-
@NotThreadSafe
3129
public enum ExponentialBackoff {
3230
TRANSACTION(5.0, 500.0, 1.5);
3331

driver-sync/src/main/com/mongodb/client/internal/ClientSessionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public <T> T withTransaction(final TransactionBody<T> transactionBody, final Tra
277277
abortTransaction();
278278
}
279279
if (e instanceof MongoException) {
280-
lastError = (MongoException) e; // Store last error
280+
lastError = (MongoException) e;
281281
if (!(e instanceof MongoOperationTimeoutException)) {
282282
MongoException exceptionToHandle = OperationHelper.unwrap((MongoException) e);
283283
if (exceptionToHandle.hasErrorLabel(TRANSIENT_TRANSACTION_ERROR_LABEL)

0 commit comments

Comments
 (0)