Update FIFOCache.java

看逻辑 应该缺少回调和continue吧
This commit is contained in:
anaer
2021-09-28 16:06:52 +08:00
committed by GitHub
parent bebf191c19
commit 906953bd11

View File

@@ -55,7 +55,9 @@ public class FIFOCache<K, V> extends AbstractCache<K, V> {
CacheObj<K, V> co = values.next();
if (co.isExpired()) {
values.remove();
onRemove(co.key, co.obj);
count++;
continue;
}
if (first == null) {
first = co;