/src/main/java/org/htmlunit/Cache.java
final Entry oldestEntry = Collections.min( this.values( ) ) ;
final Entry oldestEntry = Collections.min ( entries_.values ( ) ) ;
entries_.put(entry.key_, entry); deleteOverflow(); } protected void deleteOverflow() { synchronized (entries_) { while (entries_.size() > maxSize_) { <extra_id_0> entries_.remove(oldestEntry.key_); if (oldestEntry.response_ != null) { oldestEntry.response_.cleanUp(); } } }