[JIRA] Created: (CC-1005) Reuse DateFormat object when formatting Iso8601 dates
"Mikko Lehtonen (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.devel |
|---|---|
| Message-ID | <1828764199.1285056889849.JavaMail.jira@chidmzhosting02.thoughtworks.com> |
Reuse DateFormat object when formatting Iso8601 dates
-----------------------------------------------------
Key: CC-1005
URL: http://jira.public.thoughtworks.org/browse/CC-1005
Project: CruiseControl
Issue Type: Improvement
Components: Core Application
Affects Versions: 2.8.4, 2.8.3
Environment: Any
Reporter: Mikko Lehtonen
In net.sourceforge.cruisecontrol.utilDateUtils, a thread-local DateFormat object is used for parsing Iso8601 strings but formatIso8601 uses org.apache.tools.ant.util.DateUtils.format that creates a new (Simple)DateFormat object in each call. Shouldn't formatIso8601 also use the thread-local object i.e.
return createIso8601Format().format(date);
or am I missing something? The only extra feature in the "ant" version of DateFormat is that setLenient(true) is called there but lenient is true by default anyway.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev