Skip to content

Commit

Permalink
fix: unnecessary transient in MemorizingClientSupplier
Browse files Browse the repository at this point in the history
Signed-off-by: John Jiang <john.sha.jiang@gmail.com>
  • Loading branch information
johnshajiang authored and lburgazzoli committed Aug 2, 2023
1 parent e2f138b commit 67aab8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

public class MemorizingClientSupplier<T extends CloseableClient> implements Supplier<T>, CloseableClient {
final Supplier<T> delegate;
transient volatile boolean initialized;
transient T value;
volatile boolean initialized;
T value;

public MemorizingClientSupplier(Supplier<T> delegate) {
this.delegate = Objects.requireNonNull(delegate);
Expand Down

0 comments on commit 67aab8a

Please sign in to comment.