瀏覽代碼

Merge branch 'master' of https://github.com/xuxueli/xxl-job

xuxueli 5 年之前
父節點
當前提交
85cd6361de
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xxl-job-core/src/main/java/com/xxl/job/core/util/DateUtil.java

+ 1 - 1
xxl-job-core/src/main/java/com/xxl/job/core/util/DateUtil.java 查看文件

@@ -24,7 +24,7 @@ public class DateUtil {
24 24
     private static final String DATE_FORMAT = "yyyy-MM-dd";
25 25
     private static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
26 26
 
27
-    private static ThreadLocal<Map<String, DateFormat>> dateFormatThreadLocal = new ThreadLocal<Map<String, DateFormat>>();
27
+    private static final ThreadLocal<Map<String, DateFormat>> dateFormatThreadLocal = new ThreadLocal<Map<String, DateFormat>>();
28 28
     private static DateFormat getDateFormat(String pattern) {
29 29
         if (pattern==null || pattern.trim().length()==0) {
30 30
             throw new IllegalArgumentException("pattern cannot be empty.");