On Fri, 22 Oct 2021 08:03:34 GMT, Hendrik Schreiber <[email protected]> 
wrote:

> Trivial improvement.
> 
> Explicitly show how to create a `Cleaner` instance using `Cleaner.create()`.
> Repeat (again) in the code example that the `State` `Runnable `should be 
> implemented as static class and not reference the instance to be cleaned, to 
> make the point even more clear to those people who never read the javadoc 
> *prose*.
> 
> I have signed the OCA a while back as 
> [hschreiber](https://openjdk.java.net/census#hschreiber).

This pull request has now been integrated.

Changeset: c295e71b
Author:    Hendrik Schreiber <[email protected]>
Committer: Roger Riggs <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/c295e71b49db20ab398ae1e8ba504d8ebff5fb77
Stats:     6 lines in 1 file changed: 4 ins; 0 del; 2 mod

8276700: Improve java.lang.ref.Cleaner javadocs

Reviewed-by: rriggs, mchung

-------------

PR: https://git.openjdk.java.net/jdk/pull/6076

Reply via email to