每个模块生成单独的报告,以便sonar扫描

This commit is contained in:
三丙
2024-11-22 11:11:06 +08:00
parent 3f25aed43a
commit 6f078284ea
4 changed files with 16 additions and 2 deletions

View File

@@ -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;
}