Is Joda-Time DateTimeFormatter class thread safe?

后端 未结 3 1991
青春惊慌失措
青春惊慌失措 2020-12-14 05:12

Is the Joda-Time DateTimeFormatter class thread safe? Once I get an instance from DateTimeFormat.forPattern, can its various parse methods be calle

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 06:01

    A quick look at the code shows there isn't any mutable shared state in DateTimeFormatter, which would make it thread safe.

提交回复
热议问题