packet.Time is not thread-safe

Description

Due to static SimpleDateFormat used in this class locally it is not safe to use it.
As a workaround synchronized/threadlocal could be done, but in general this is a bad idea to put date format locally because it follows well known XEP and could be greatly reused. As example of this there are StringUtils which can parse same format in thread-safe fashion.

(migrated from Flowdalic/smack issue reports)

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Expected Effort

Components

Fix versions

Affects versions

Priority

Created February 15, 2014 at 10:41 AM
Updated August 17, 2014 at 1:11 PM
Resolved March 9, 2014 at 10:56 PM