[COLLECTIONS-523] Remove unneeded private method. Thanks to Thiago Andrade.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1596053 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3d48f8347
commit
0a114bbdb0
|
@ -22,6 +22,9 @@
|
|||
<body>
|
||||
|
||||
<release version="4.1" date="TBD" description="">
|
||||
<action issue="COLLECTIONS-523" dev="tn" type="fix" due-to="Thiago Andrade">
|
||||
Removed unneeded private method in "PassiveExpiringMap".
|
||||
</action>
|
||||
<action issue="COLLECTIONS-516" dev="tn" type="fix" due-to="Cyrille Artho">
|
||||
Added clarification to the javadoc of "MapUtils#toProperties(Map)" in case
|
||||
of null keys/values.
|
||||
|
|
|
@ -427,14 +427,6 @@ public class PassiveExpiringMap<K, V>
|
|||
|
||||
@Override
|
||||
public V put(final K key, final V value) {
|
||||
return put(key, value, now());
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the given key-value pair to this map as well as recording the entry's expiration time based on
|
||||
* the current time in milliseconds, <code>now</code> and this map's {@link #expiringPolicy}.
|
||||
*/
|
||||
private V put(final K key, final V value, final long now) {
|
||||
// record expiration time of new entry
|
||||
final long expirationTime = expiringPolicy.expirationTime(key, value);
|
||||
expirationMap.put(key, Long.valueOf(expirationTime));
|
||||
|
|
Loading…
Reference in New Issue