Skip to content

Commit

Permalink
Update annotations in JCache code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed Dec 10, 2024
1 parent 4353240 commit c5fdc2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public final class LoadingCacheProxy<K, V> extends CacheProxy<K, V> {

@SuppressWarnings({"PMD.ExcessiveParameterList", "TooManyParameters"})
public LoadingCacheProxy(String name, Executor executor, CacheManager cacheManager,
CaffeineConfiguration<K, V> configuration, LoadingCache<K, Expirable<V>> cache,
CaffeineConfiguration<K, V> configuration, LoadingCache<K, @Nullable Expirable<V>> cache,
EventDispatcher<K, V> dispatcher, CacheLoader<K, V> cacheLoader,
ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics) {
super(name, executor, cacheManager, configuration, cache, dispatcher,

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / Compile (GraalVM)

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / Compile (GraalVM)

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / pmd

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / pmd

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / spotbugs

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / spotbugs

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / forbiddenApis

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability

Check warning on line 58 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java

View workflow job for this annotation

GitHub Actions / forbiddenApis

[NullAway] Cannot pass parameter of type LoadingCache<K, @nullable Expirable<V>>, as formal parameter has type Cache<K, Expirable<V>>, which has mismatched type parameter nullability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @author [email protected] (Ben Manes)
*/
public final class JCacheLoaderAdapter<K, V>
implements com.github.benmanes.caffeine.cache.CacheLoader<K, Expirable<V>> {
implements com.github.benmanes.caffeine.cache.CacheLoader<K, @Nullable Expirable<V>> {
private static final Logger logger = System.getLogger(JCacheLoaderAdapter.class.getName());

private final JCacheStatisticsMXBean statistics;
Expand Down

0 comments on commit c5fdc2c

Please sign in to comment.