Skip to content

Commit

Permalink
double lock check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bughue committed May 7, 2024
1 parent b649852 commit 3cc6ca3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public <T> T deserialize(byte[] bytes) {

static class SeataSerializerV1 implements Serializer {

private static SeataSerializerV1 instance;
private static volatile SeataSerializerV1 instance;

private SeataSerializerV1() {
}
Expand Down Expand Up @@ -111,7 +111,7 @@ public <T> T deserialize(byte[] bytes) {
}
static class SeataSerializerV0 implements Serializer {

private static SeataSerializerV0 instance;
private static volatile SeataSerializerV0 instance;

private SeataSerializerV0() {
}
Expand Down

0 comments on commit 3cc6ca3

Please sign in to comment.