[
https://issues.apache.org/jira/browse/TIKA-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210207#comment-13210207
]
Nick Burch commented on TIKA-864:
---------------------------------
If we did store them on a ThreadLocal, then how would we allow them to be
cleaned up?
For an example, Tomcat will give you warnings if you leave behind Thread
Locals, so we'd need to give a way to clean them up that someone using Tika
inside a webapp could use.
> Metadata.formatDate should use ThreadLocal
> ------------------------------------------
>
> Key: TIKA-864
> URL: https://issues.apache.org/jira/browse/TIKA-864
> Project: Tika
> Issue Type: Improvement
> Components: metadata
> Reporter: Andrzej Bialecki
>
> Currently this is a synchronized method that uses a single instance of
> DateFormat. Instead it could use a pool of ThreadLocal DateFormat instances
> and avoid the sync blocking.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira