mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
4998646191
@ -111,6 +111,8 @@ public class FieldQueryManager {
|
|||||||
} else if (fieldType == Set.class) {
|
} else if (fieldType == Set.class) {
|
||||||
return Collections.emptySet();
|
return Collections.emptySet();
|
||||||
}
|
}
|
||||||
|
// avoid NPE
|
||||||
|
return ClassUtil.newInstance(fieldType);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ClassUtil.canInstance(fieldType.getModifiers())) {
|
if (ClassUtil.canInstance(fieldType.getModifiers())) {
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public class DateUtil {
|
|||||||
public static final String dateMillisecondPattern = "yyyy-MM-dd HH:mm:ss SSS";
|
public static final String dateMillisecondPattern = "yyyy-MM-dd HH:mm:ss SSS";
|
||||||
public static final String dateCSTPattern = "EEE MMM dd HH:mm:ss zzz yyyy";
|
public static final String dateCSTPattern = "EEE MMM dd HH:mm:ss zzz yyyy";
|
||||||
|
|
||||||
private static final ThreadLocal<HashMap<String, SimpleDateFormat>> TL = ThreadLocal.withInitial(() -> new HashMap<>());
|
private static final ThreadLocal<HashMap<String, SimpleDateFormat>> TL = ThreadLocal.withInitial(HashMap::new);
|
||||||
|
|
||||||
private static final Map<String, DateTimeFormatter> dateTimeFormatters = new ConcurrentHashMap<>();
|
private static final Map<String, DateTimeFormatter> dateTimeFormatters = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user