valerybokov commented on PR #443: URL: https://github.com/apache/pdfbox/pull/443#issuecomment-4382454769
> Why check both? I assume with "cast" you mean "printerGraphics = (Graphics2D) graphics". Shouldn't it be enough to check only "printerGraphics", and if not, why not? I hope I understood you correctly. Line 298: the graphics2D reference doesn't always refer to the same object as the printerGraphics reference. Therefore, we only dispose the object if a new graphics object has been created. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
