[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:
Thomas Neidhart 2014-05-19 20:47:09 +00:00
parent d3d48f8347
commit 0a114bbdb0
2 changed files with 3 additions and 8 deletions

View File

@ -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.

View File

@ -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));