SimpleDateFormat is not a thread-safe component, we should use the method used in SolrIndexer class :
private static final ThreadLocal<SimpleDateFormat> __DATE_FORMAT = new ThreadLocal<>(); public static SimpleDateFormat dateFormat() { if (__DATE_FORMAT.get() == null) { __DATE_FORMAT.set(new SimpleDateFormat("yyyy-MM-dd")); } return __DATE_FORMAT.get(); }
- Est composé de
-
CMS-8193 EditContentFunction is not thread-safe
- Closed