On Wed, 10 Apr 2024 09:59:19 GMT, Tejesh R <[email protected]> wrote: >> 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.
I guess you mentioned about this thread https://github.com/openjdk/jdk/pull/17609#discussion_r1483263329. But here the graphics object is passed as parameter. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1559207876
