On Wed, 10 Apr 2024 10:27:03 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:
>> 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. Yeah right. Thank you for clarification. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1559261782