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 89c0674 commit b649852
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private SeataSerializerV1() {
public static SeataSerializerV1 getInstance() {
if (instance == null) {
synchronized (SeataSerializerV1.class) {
if(instance == null){
if (instance == null) {
instance = new SeataSerializerV1();
}
}
Expand Down Expand Up @@ -119,7 +119,7 @@ private SeataSerializerV0() {
public static SeataSerializerV0 getInstance() {
if (instance == null) {
synchronized (SeataSerializerV0.class) {
if(instance == null){
if (instance == null) {
instance = new SeataSerializerV0();
}
}
Expand Down

0 comments on commit b649852

Please sign in to comment.