src/share/classes/sun/misc/SoftCache.java

Print this page

        

*** 307,317 **** * <code>value</code> * @param value The value to which the given <code>key</code> is to be * mapped * * @return The previous value to which this key was mapped, or ! * <code>null</code> if if there was no mapping for the key */ public Object put(Object key, Object value) { processQueue(); ValueCell vc = ValueCell.create(key, value, queue); return ValueCell.strip(hash.put(key, vc), true); --- 307,317 ---- * <code>value</code> * @param value The value to which the given <code>key</code> is to be * mapped * * @return The previous value to which this key was mapped, or ! * <code>null</code> if there was no mapping for the key */ public Object put(Object key, Object value) { processQueue(); ValueCell vc = ValueCell.create(key, value, queue); return ValueCell.strip(hash.put(key, vc), true);