From 9285ccbd5f7604248af51935b0901070b93402ea Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 28 Apr 2022 03:47:26 +0800 Subject: [PATCH] fix code --- .../java/cn/hutool/core/map/ReferenceConcurrentMap.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) ; }