Bug:Multi-threading - Call to static DateFormat
描述:
As the JavaDoc states, DateFormats are inherently unsafe for multithreaded use. The detector has found a call to an instance of DateFormat that has been obtained via a static field. This looks suspicious.
For more information on this see JDK Bug #6231579 and JDK Bug #6178997.
根据上面的英文描述,DateFormats是线程不安全的,以后项目中尽量避免使用,可以用DateUtils工具类中封装好的format和parse方法进行替代。有时间继续补充DateUtils中的具体相关方法。