Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
DateUtils create a SimpleDateFormat for each invocation of #formatDate and #parseDate. This can be optimized if SimpleDateFormat instances are cached. Since SimpleDateFormat is not threadsafe, the cache must be threadlocal.
Attachments
Attachments
Issue Links
- incorporates
-
HTTPCORE-84 Move DateUtils to HttpClient/Cookie
- Closed
- relates to
-
HTTPCLIENT-1523 DateUtils ThreadLocal leak if referencing non-JDK classes
- Closed