mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 04:47:26 +00:00
[Change] 补充 HashMapCacheStore 对参数的 null 检查;
[Change] HashMapCacheStore 增加对参数的 null 检查, 及时抛出 NPE;
This commit is contained in:
@ -38,7 +38,7 @@ public class HashMapCacheStore<V> extends HashCacheStore<Map<String, V>> impleme
|
||||
|
||||
@Override
|
||||
public Set<String> mapFieldSet(String key) {
|
||||
return getMap(key, false, Map::keySet, null);
|
||||
return getMap(key, false, map -> Collections.unmodifiableSet(map.keySet()), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user