From 1d4ac7d0dca04ff8b6d64b4c47cc5ff01d60201d Mon Sep 17 00:00:00 2001 From: neko <52202080+akiyamaneko@users.noreply.github.com> Date: Wed, 23 Sep 2020 01:06:04 +0800 Subject: [PATCH] =?UTF-8?q?cache=E6=A8=A1=E5=9D=97=E5=86=97=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hutool/cache/impl/CacheObjIterator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hutool-cache/src/main/java/cn/hutool/cache/impl/CacheObjIterator.java b/hutool-cache/src/main/java/cn/hutool/cache/impl/CacheObjIterator.java index 3b7324a28f..0b7d746656 100644 --- a/hutool-cache/src/main/java/cn/hutool/cache/impl/CacheObjIterator.java +++ b/hutool-cache/src/main/java/cn/hutool/cache/impl/CacheObjIterator.java @@ -42,7 +42,7 @@ public boolean hasNext() { */ @Override public CacheObj next() { - if (false == hasNext()) { + if (!hasNext()) { throw new NoSuchElementException(); } final CacheObj cachedObject = nextValue; @@ -64,7 +64,7 @@ public void remove() { private void nextValue() { while (iterator.hasNext()) { nextValue = iterator.next(); - if (nextValue.isExpired() == false) { + if (!nextValue.isExpired()) { return; } }