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.
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)