mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-26 11:46:34 +01:00
MSGPACK-27: appended \'synchronized\' to modifiers of TemplateRegistry#unregister ( )
This commit is contained in:
parent
96bab8e02e
commit
bcad8d4c4c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user