mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
ddfa178882
commit
9285ccbd5f
@ -154,24 +154,24 @@ public class ReferenceConcurrentMap<K, V> implements ConcurrentMap<K, V>, 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) ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user