From 73d646d8f6a88179a2907e014ba993bd240de713 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 28 Apr 2018 20:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E5=B1=82LocalCache=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81jdk=E3=80=81jdk10=E7=BC=96=E8=AF=91=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB官方文档.md | 1 + .../main/java/com/xxl/job/admin/core/util/LocalCacheUtil.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index ddc76cbb..1008b7f1 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1195,6 +1195,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段 - 7、告警邮箱支持SSL配置; - 8、Window机器下File.separator不兼容问题修复; - 9、任务日志查询速度优化,百万级别日志量搜索速度提升1000倍; +- 10、底层LocalCache组件兼容性优化,支持jdk、jdk10编译部署; ### TODO LIST diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/LocalCacheUtil.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/LocalCacheUtil.java index 3a0ec942..f5b90833 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/LocalCacheUtil.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/LocalCacheUtil.java @@ -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 cacheRepository = new ConcurrentHashMap<>(); + private static ConcurrentMap cacheRepository = new ConcurrentHashMap<>(); // 类型建议用抽象父类,兼容性更好; private static class LocalCacheData{ private String key; private Object val;