Skip to content

Commit 9787e30

Browse files
committed
synchronize access to WmoCodeFlagTables getInstance()
Fixes #709
1 parent 226eed6 commit 9787e30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

grib/src/main/java/ucar/nc2/grib/grib2/table/WmoCodeFlagTables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public enum TableType {
4747

4848
private static WmoCodeFlagTables instance;
4949

50-
public static WmoCodeFlagTables getInstance() {
50+
public static synchronized WmoCodeFlagTables getInstance() {
5151
if (instance == null) {
5252
instance = new WmoCodeFlagTables();
5353
try {

0 commit comments

Comments
 (0)