Skip to content

Commit caade96

Browse files
author
haileyajohnson
authored
Merge pull request #795 from lesserwhirls/port-784-5
[5.x]: Port synchronize access to WmoCodeFlagTables getInstance()
2 parents 226eed6 + 9787e30 commit caade96

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)