From 2c2fb5131f56466186277c31a7977760d6752248 Mon Sep 17 00:00:00 2001 From: Davy Landman Date: Wed, 20 Sep 2023 14:43:41 +0200 Subject: [PATCH] Improved null check annotations --- .../usethesource/vallang/util/WeakReferenceHashConsingMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java b/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java index ff8189de..cb35a0ce 100644 --- a/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java +++ b/src/main/java/io/usethesource/vallang/util/WeakReferenceHashConsingMap.java @@ -151,7 +151,7 @@ public WeakReferenceHashConsingMap(int size, int demoteAfterSeconds) { } - private static <@Nullable T extends Object> void cleanup(int demoteAfterSeconds, HotEntry[] hotEntries, Map> coldEntries, + private static void cleanup(int demoteAfterSeconds, @Nullable HotEntry[] hotEntries, Map> coldEntries, ReferenceQueue queue) { try { final int now = SecondsTicker.current();