mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
MSGPACK-27: appended \'synchronized\' to modifiers of TemplateRegistry#unregister ( )
This commit is contained in:
@@ -72,7 +72,7 @@ public class TemplateRegistry {
|
||||
map.put(rawType, tmpl);
|
||||
}
|
||||
|
||||
public static boolean unregister(Class<?> target) {
|
||||
public static synchronized boolean unregister(Class<?> target) {
|
||||
Template tmpl = map.remove(target);
|
||||
return tmpl != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user