This commit is contained in:
Gary Gregory 2023-12-14 10:25:44 -05:00
parent 908a79dc8c
commit fe2a01be4c
2 changed files with 4 additions and 4 deletions

View File

@ -956,7 +956,7 @@ public abstract class AbstractReferenceMap<K, V> extends AbstractHashedMap<K, V>
* A soft reference holder. * A soft reference holder.
*/ */
static class SoftRef<T> extends SoftReference<T> { static class SoftRef<T> extends SoftReference<T> {
/** the hashCode of the key (even if the reference points to a value) */ /** The hashCode of the key (even if the reference points to a value) */
private final int hash; private final int hash;
SoftRef(final int hash, final T r, final ReferenceQueue<? super T> q) { SoftRef(final int hash, final T r, final ReferenceQueue<? super T> q) {
@ -989,7 +989,7 @@ public abstract class AbstractReferenceMap<K, V> extends AbstractHashedMap<K, V>
* A weak reference holder. * A weak reference holder.
*/ */
static class WeakRef<T> extends WeakReference<T> { static class WeakRef<T> extends WeakReference<T> {
/** the hashCode of the key (even if the reference points to a value) */ /** The hashCode of the key (even if the reference points to a value) */
private final int hash; private final int hash;
WeakRef(final int hash, final T r, final ReferenceQueue<? super T> q) { WeakRef(final int hash, final T r, final ReferenceQueue<? super T> q) {

View File

@ -79,7 +79,7 @@ public class PassiveExpiringMap<K, V>
/** Serialization version */ /** Serialization version */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** the constant time-to-live value measured in milliseconds. */ /** The constant time-to-live value measured in milliseconds. */
private final long timeToLiveMillis; private final long timeToLiveMillis;
/** /**
@ -198,7 +198,7 @@ public class PassiveExpiringMap<K, V>
/** map used to manage expiration times for the actual map entries. */ /** map used to manage expiration times for the actual map entries. */
private final Map<Object, Long> expirationMap = new HashMap<>(); private final Map<Object, Long> expirationMap = new HashMap<>();
/** the policy used to determine time-to-live values for map entries. */ /** The policy used to determine time-to-live values for map entries. */
private final ExpirationPolicy<K, V> expiringPolicy; private final ExpirationPolicy<K, V> expiringPolicy;
/** /**