SimpleDateFormat is not thread-safe.
So you can do one of the following:
* Wrap the SimpleDateFormat class to synchronize format and parse methods. (looks like a heavy handed solution!)
* Use apache-commons-lang FastDateFormat - but doesn't do parsing !
So you can do one of the following:
* Wrap the SimpleDateFormat class to synchronize format and parse methods. (looks like a heavy handed solution!)
* Use apache-commons-lang FastDateFormat - but doesn't do parsing !
No comments:
Post a Comment