diff --git a/hutool-core/src/main/java/cn/hutool/core/map/ReferenceConcurrentMap.java b/hutool-core/src/main/java/cn/hutool/core/map/ReferenceConcurrentMap.java index 389270947..c5947a9b6 100755 --- a/hutool-core/src/main/java/cn/hutool/core/map/ReferenceConcurrentMap.java +++ b/hutool-core/src/main/java/cn/hutool/core/map/ReferenceConcurrentMap.java @@ -154,24 +154,24 @@ public class ReferenceConcurrentMap implements ConcurrentMap, Iterab return computeIfAbsent(key, (keyParam) -> supplier.callWithRuntimeException()); } + @SuppressWarnings("unchecked") @Override public V remove(Object key) { this.purgeStaleKeys(); - //noinspection unchecked return this.raw.remove(ofKey((K) key, null)); } + @SuppressWarnings("unchecked") @Override public boolean remove(Object key, Object value) { this.purgeStaleKeys(); - //noinspection unchecked return this.raw.remove(ofKey((K) key, null), value); } + @SuppressWarnings("StatementWithEmptyBody") @Override public void clear() { this.raw.clear(); - //noinspection StatementWithEmptyBody while (lastQueue.poll() != null) ; }