Skip to content

Commit

Permalink
Fix singleton in PerconaConstraintsService
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Dec 19, 2024
1 parent ba13aa0 commit 472fd11
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@
import liquibase.structure.core.Table;

public class PerconaConstraintsService {
private static PerconaConstraintsService instance = new PerconaConstraintsService();
private static final PerconaConstraintsService INSTANCE = new PerconaConstraintsService();
private Logger log = Scope.getCurrentScope().getLog(PerconaConstraintsService.class);
private boolean enabled = true;

private PerconaConstraintsService() {
// private constructor to prevent instantiation from somewhere else
}

public static PerconaConstraintsService getInstance() {
return instance;
return INSTANCE;
}

/**
Expand Down

0 comments on commit 472fd11

Please sign in to comment.