NumberFormatException while parsing date with SimpleDateFormat.parse()

前端 未结 7 1305
我寻月下人不归
我寻月下人不归 2020-12-08 07:11

Have a function that creates a time-only Date object. (why this is required is a long story which is irrelevant in this context but I need to compare to some stuff in XML wo

相关标签:
7条回答
  • 2020-12-08 07:56

    I have got the same question, the cause is SimpleDateFormat is not thread-safe, I just add syncronized in the method, and it doesn't happen again.

    0 讨论(0)
提交回复
热议问题