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