We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30cfdce commit 4495b3fCopy full SHA for 4495b3f
common-tools/clas-detector/src/main/java/org/jlab/detector/swaps/SwapManager.java
@@ -56,7 +56,7 @@ public final class SwapManager {
56
private ConstantsManager currConman = null;
57
private SchemaFactory schema = null;
58
59
- private static SwapManager instance = null;
+ private static SwapManager instance = new SwapManager();
60
61
public Set<String> getDetectors() {
62
return this.detsToBanks.keySet();
@@ -70,10 +70,7 @@ public List<String> getBanks(String detectorName) {
70
71
private SwapManager() {}
72
73
- public static synchronized SwapManager getInstance() {
74
- if (instance == null) {
75
- instance = new SwapManager();
76
- }
+ public static SwapManager getInstance() {
77
return instance;
78
}
79
0 commit comments