Skip to content

Commit

Permalink
Improved null check annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Sep 20, 2023
1 parent ecc8709 commit 2c2fb51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public WeakReferenceHashConsingMap(int size, int demoteAfterSeconds) {
}


private static <@Nullable T extends Object> void cleanup(int demoteAfterSeconds, HotEntry<T>[] hotEntries, Map<Object, WeakReferenceWrap<T>> coldEntries,
private static <T extends @NonNull Object> void cleanup(int demoteAfterSeconds, @Nullable HotEntry<T>[] hotEntries, Map<Object, WeakReferenceWrap<T>> coldEntries,
ReferenceQueue<T> queue) {
try {
final int now = SecondsTicker.current();
Expand Down

0 comments on commit 2c2fb51

Please sign in to comment.