底层LocalCache组件兼容性优化,支持jdk、jdk10编译部署;

pull/MERGE
xuxueli 7 years ago
parent 5ae12fdb1a
commit 73d646d8f6

@ -1195,6 +1195,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
- 7、告警邮箱支持SSL配置
- 8、Window机器下File.separator不兼容问题修复
- 9、任务日志查询速度优化百万级别日志量搜索速度提升1000倍
- 10、底层LocalCache组件兼容性优化支持jdk、jdk10编译部署
### TODO LIST

@ -3,6 +3,7 @@ package com.xxl.job.admin.core.util;
import org.apache.commons.lang3.StringUtils;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* local cache tool
@ -11,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public class LocalCacheUtil {
private static ConcurrentHashMap<String, LocalCacheData> cacheRepository = new ConcurrentHashMap<>();
private static ConcurrentMap<String, LocalCacheData> cacheRepository = new ConcurrentHashMap<>(); // 类型建议用抽象父类,兼容性更好;
private static class LocalCacheData{
private String key;
private Object val;

Loading…
Cancel
Save