RFR: 8276700: Improve java.lang.ref.Cleaner javadocs [v2]
Hendrik Schreiber
hschreiber at openjdk.java.net
Wed Nov 10 09:30:10 UTC 2021
On Mon, 8 Nov 2021 23:21:49 GMT, Brent Christian <bchristi at openjdk.org> wrote:
>> This is what I suggested and makes it clear that *must hold no reference to the instance being cleaned*. Maybe you didn't notice it's still there?
>>
>>
>> * // State class captures information necessary for cleanup.
>> * // It must hold no reference to the instance being cleaned
>> * // and therefore it is a static inner class in this CleaningExample
>> ```
>
> I like this suggestion - calling out that the static-ness of the State class is due to the requirement to not hold any references.
> Maybe you didn't notice it's still there?
Yeah. Sorry, @mlchung. Good suggestion!
-------------
PR: https://git.openjdk.java.net/jdk/pull/6076
More information about the core-libs-dev
mailing list