src/share/classes/java/lang/ref/SoftReference.java

Print this page
rev 905 : imported patch ref

*** 106,115 **** * @return The object to which this reference refers, or * <code>null</code> if this reference object has been cleared */ public T get() { T o = super.get(); ! if (o != null) this.timestamp = clock; return o; } } --- 106,116 ---- * @return The object to which this reference refers, or * <code>null</code> if this reference object has been cleared */ public T get() { T o = super.get(); ! if (o != null && this.timestamp != clock) ! this.timestamp = clock; return o; } }