diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b6766a33b..0ae53de58 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,9 @@ + + Removed unneeded private method in "PassiveExpiringMap". + Added clarification to the javadoc of "MapUtils#toProperties(Map)" in case of null keys/values. diff --git a/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java b/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java index 2a18e45fc..168df8c0a 100644 --- a/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java +++ b/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java @@ -427,14 +427,6 @@ public class PassiveExpiringMap @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, now 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));