{
WeakHashMap<String,WeakReference<ItsNatButtonGroupImpl>> buttonGroupsByName = getButtonGroupsByNameMap();
for(Map.Entry<String,ItsNatButtonGroupImpl> entry : mapTmp.entrySet())
{
String key = entry.getKey();
ItsNatButtonGroupImpl value = entry.getValue();
buttonGroupsByName.put(key,new WeakReference<ItsNatButtonGroupImpl>(value));
}
}
}
{
@SuppressWarnings("unchecked")
Map<ButtonGroup,ItsNatButtonGroupImpl> mapTmp = (Map<ButtonGroup,ItsNatButtonGroupImpl>)in.readObject();
if (mapTmp != null)
{
WeakHashMap<ButtonGroup,WeakReference<ItsNatButtonGroupImpl>> buttonGroupsByButtonGroup = getButtonGroupsByButtonGroupMap();
for(Map.Entry<ButtonGroup,ItsNatButtonGroupImpl> entry : mapTmp.entrySet())
{
ButtonGroup key = entry.getKey();
ItsNatButtonGroupImpl value = entry.getValue();
buttonGroupsByButtonGroup.put(key,new WeakReference<ItsNatButtonGroupImpl>(value));
}
}
}