Explorar el Código

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

xuxueli hace 5 años
padre
commit
85cd6361de

+ 1 - 1
xxl-job-core/src/main/java/com/xxl/job/core/util/DateUtil.java Ver fichero

24
     private static final String DATE_FORMAT = "yyyy-MM-dd";
24
     private static final String DATE_FORMAT = "yyyy-MM-dd";
25
     private static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
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
     private static DateFormat getDateFormat(String pattern) {
28
     private static DateFormat getDateFormat(String pattern) {
29
         if (pattern==null || pattern.trim().length()==0) {
29
         if (pattern==null || pattern.trim().length()==0) {
30
             throw new IllegalArgumentException("pattern cannot be empty.");
30
             throw new IllegalArgumentException("pattern cannot be empty.");