valerybokov commented on PR #463: URL: https://github.com/apache/pdfbox/pull/463#issuecomment-4609944828
> Copilot suggests this could be refactored so that it stores only the last element of decodeResults and that makes sense. And if we null that one, then we should mention in the javadoc that getDecodeResult() is not to be called after close(). This is bad idea to use the stream after its closing. Any method can throw IllegalOperationException (the stream is closed). IMHO, you shouldn't write something like "this method can/cannot be called when the stream is closed". Any method not recommended to call when the stream is closed. -- 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]
