mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
f4885c27e8
commit
a18b4f2519
@ -177,6 +177,7 @@ public class ReferenceKeyConcurrentMap<K, V> implements ConcurrentMap<K, V>, Ite
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<K> keySet() {
|
public Set<K> keySet() {
|
||||||
|
this.purgeStaleKeys();
|
||||||
// TODO 非高效方式的set转换,应该返回一个view
|
// TODO 非高效方式的set转换,应该返回一个view
|
||||||
final Collection<K> trans = CollUtil.trans(this.raw.keySet(), (reference) -> null == reference ? null : reference.get());
|
final Collection<K> trans = CollUtil.trans(this.raw.keySet(), (reference) -> null == reference ? null : reference.get());
|
||||||
return new HashSet<>(trans);
|
return new HashSet<>(trans);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user