【fix sonar】 XxlJobScheduler.java文件

This commit is contained in:
tianwenbo
2023-03-10 16:08:38 +08:00
parent 94d55a2359
commit 46ce65166b
@@ -20,7 +20,7 @@ public class XxlJobScheduler {
private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class);
public void init() throws Exception {
public void init() {
// init i18n
initI18n();
@@ -45,8 +45,8 @@ public class XxlJobScheduler {
logger.info(">>>>>>>>> init xxl-job admin success.");
}
public void destroy() throws Exception {
public void destroy() {
// stop-schedule
JobScheduleHelper.getInstance().toStop();
@@ -77,8 +77,8 @@ public class XxlJobScheduler {
}
// ---------------------- executor-client ----------------------
private static ConcurrentMap<String, ExecutorBiz> executorBizRepository = new ConcurrentHashMap<String, ExecutorBiz>();
public static ExecutorBiz getExecutorBiz(String address) throws Exception {
private static ConcurrentMap<String, ExecutorBiz> executorBizRepository = new ConcurrentHashMap<>();
public static ExecutorBiz getExecutorBiz(String address) {
// valid
if (address==null || address.trim().length()==0) {
return null;