On 08.08.2023 19:30, Daniel Gredler wrote:
If not, what about keeping a static final UTC `TimeZone` constant and creating a clone each time it is needed, to avoid the synchronization? (`Calendar.getTimeZone()` makes liberal use of `clone()`, for example).
I've added a static final for UTC but no cloning yet; why would we have to clone it when needed? Why does java do it?
I looked a bit in the source code, there is a "sharedZone" flag, but it's unclear if set or not.
https://issues.apache.org/jira/browse/PDFBOX-5645 Tilman --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
