On Mon, 8 Nov 2021 23:21:49 GMT, Brent Christian <bchri...@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

Reply via email to