On Wed, 10 Apr 2024 09:51:05 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:

>> I'm not sure whether we have to dispose it here at this context.
>
> Since you are creating it locally, I guess you can dispose it.

I'm sure whether a new Graphics2D object will be created or reference will be 
passed, just vaguely remember a conversation regarding disposing it and 
suggested not to dispose since a reference will be passed on. So not sure 
should we actually dispose here or not. And also I see in most of the places 
its not been disposed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1559174493

Reply via email to