MSGPACK-27: appended \'synchronized\' to modifiers of TemplateRegistry#unregister ( )

This commit is contained in:
Muga Nishizawa 2011-06-30 10:36:01 +09:00
parent 96bab8e02e
commit bcad8d4c4c

View File

@ -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;
}