Skip to content

Commit

Permalink
Optimize transaction FieldUpdater to static final (#13396)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangJian He authored Dec 20, 2021
1 parent 7e2c8c1 commit b261d6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TransactionImpl implements Transaction , TimerTask {
private final ArrayList<CompletableFuture<MessageId>> sendFutureList;
private final ArrayList<CompletableFuture<Void>> ackFutureList;
private volatile State state;
private final AtomicReferenceFieldUpdater<TransactionImpl, State> STATE_UPDATE =
private static final AtomicReferenceFieldUpdater<TransactionImpl, State> STATE_UPDATE =
AtomicReferenceFieldUpdater.newUpdater(TransactionImpl.class, State.class, "state");

@Override
Expand Down

0 comments on commit b261d6a

Please sign in to comment.