Skip to content

Commit

Permalink
Improved the suppression of one warning we cannot solve
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Sep 2, 2024
1 parent 4028652 commit 7aacfa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void put(int size, T returned) {
private static final ConcurrentLinkedQueue<WeakReference<CacheFactory<?>>> CLEANUP_CACHES = new ConcurrentLinkedQueue<>();


@SuppressWarnings("argument") // passed in reference might not be completly initialized
@SuppressWarnings({"argument", "arguments"}) // passed in reference might not be completly initialized
private static void registerInstance(@UnknownInitialization CacheFactory<?> cache) {
CLEANUP_CACHES.add(new WeakReference<>(cache));
}
Expand Down

0 comments on commit 7aacfa0

Please sign in to comment.