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
f4885c27e8
commit
a18b4f2519
@ -177,6 +177,7 @@ public class ReferenceKeyConcurrentMap<K, V> implements ConcurrentMap<K, V>, Ite
|
||||
|
||||
@Override
|
||||
public Set<K> keySet() {
|
||||
this.purgeStaleKeys();
|
||||
// TODO 非高效方式的set转换,应该返回一个view
|
||||
final Collection<K> trans = CollUtil.trans(this.raw.keySet(), (reference) -> null == reference ? null : reference.get());
|
||||
return new HashSet<>(trans);
|
||||
|
Loading…
x
Reference in New Issue
Block a user