mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 01:49:58 +08:00
每个模块生成单独的报告,以便sonar扫描
This commit is contained in:
@@ -47,10 +47,11 @@ public abstract class VersionedCaffeineCache<K extends VersionedCacheKey, V exte
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private JCPPPair<Long, V> doGet(K key) {
|
||||
Cache.ValueWrapper source = cache.get(key);
|
||||
if (source != null && source.get() instanceof JCPPPair pair) {
|
||||
return pair;
|
||||
if (source != null && source.get() instanceof JCPPPair<?, ?> pair) {
|
||||
return (JCPPPair<Long, V>) pair;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user