Skip to content

Commit ef7acc2

Browse files
committed
requires synchronized
1 parent 44e7ecd commit ef7acc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoderPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public CLASDecoderPool(int size, String variation, String timestamp) {
3434

3535
volatile static CLASDecoderPool instance = null;
3636

37-
public static CLASDecoderPool getInstance() {
37+
public static synchronized CLASDecoderPool getInstance() {
3838
if (instance == null)
3939
instance = new CLASDecoderPool(64,"default",null);
4040
return instance;

0 commit comments

Comments
 (0)