Is Joda-Time DateTimeFormatter class thread safe?

后端 未结 3 1972
青春惊慌失措
青春惊慌失措 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 05:52

    Found this question on top of google's answers when checking for Java's java.time.format.DateTimeFormatter thread safety

    Java's own DateTimeFormatter is also thread-safe, as the documentation states:

    This class is immutable and thread-safe

提交回复
热议问题