valerybokov commented on PR #270: URL: https://github.com/apache/pdfbox/pull/270#issuecomment-3342000943
Thank you for the clarification regarding List.of. I used the ArrayList constructor with the initial capacity because I didn't want to make significant changes to the code. I see that inside the List.of method, the listFromTrustedArray method is called, and inside it, there's a loop with a null check and a check for the collection size. Although, I don't argue that List.of could be faster. If Tilman Hausherr prefers the List.of approach, I'll rework it. -- 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]
