Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/java.base/share/classes/java/lang/ref/Cleaner.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
import java.util.Objects;
import java.util.concurrent.ThreadFactory;
import java.util.function.Function;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Nullabe import isn't used, so I probably wouldn't have added it. But otherwise this looks fine.


/**
* {@code Cleaner} manages a set of object references and corresponding cleaning actions.
Expand Down Expand Up @@ -132,6 +134,7 @@
* All cleaning actions registered to a cleaner should be mutually compatible.
* @since 9
*/
@NullMarked
public final class Cleaner {

/**
Expand Down
Loading