void release() { if (childRowToIdMap != null) { Collection delegates = childRowToIdMap.values(); Iterator iter = delegates.iterator(); while (iter.hasNext()) { SWTAccessibleDelegate childDelegate = ((Accessible) iter.next()).delegate; if (childDelegate != null) { childDelegate.internal_dispose_SWTAccessibleDelegate(); childDelegate.release(); } } childRowToIdMap.clear(); childRowToIdMap = null; } if (childColumnToIdMap != null) { Collection delegates = childColumnToIdMap.values(); Iterator iter = delegates.iterator(); while (iter.hasNext()) { SWTAccessibleDelegate childDelegate = ((Accessible) iter.next()).delegate; if (childDelegate != null) { childDelegate.internal_dispose_SWTAccessibleDelegate(); childDelegate.release(); } } childColumnToIdMap.clear(); childColumnToIdMap = null; } }
protected void saveAuthCache() { try { this_mon.enter(); HashMap map = new HashMap(); Iterator it = auth_cache.values().iterator(); while (it.hasNext()) { authCache value = (authCache) it.next(); if (value.isPersistent()) { try { HashMap entry_map = new HashMap(); entry_map.put("user", value.getAuth().getUserName().getBytes("UTF-8")); entry_map.put("pw", new String(value.getAuth().getPassword()).getBytes("UTF-8")); map.put(value.getKey(), entry_map); } catch (Throwable e) { Debug.printStackTrace(e); } } } COConfigurationManager.setParameter(CONFIG_PARAM, map); } finally { this_mon.exit(); } }