【fix sonar】 XxlJobScheduler.java文件
This commit is contained in:
+5
-5
@@ -20,7 +20,7 @@ public class XxlJobScheduler {
|
|||||||
private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class);
|
private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class);
|
||||||
|
|
||||||
|
|
||||||
public void init() throws Exception {
|
public void init() {
|
||||||
// init i18n
|
// init i18n
|
||||||
initI18n();
|
initI18n();
|
||||||
|
|
||||||
@@ -45,8 +45,8 @@ public class XxlJobScheduler {
|
|||||||
logger.info(">>>>>>>>> init xxl-job admin success.");
|
logger.info(">>>>>>>>> init xxl-job admin success.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void destroy() throws Exception {
|
public void destroy() {
|
||||||
|
|
||||||
// stop-schedule
|
// stop-schedule
|
||||||
JobScheduleHelper.getInstance().toStop();
|
JobScheduleHelper.getInstance().toStop();
|
||||||
@@ -77,8 +77,8 @@ public class XxlJobScheduler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------- executor-client ----------------------
|
// ---------------------- executor-client ----------------------
|
||||||
private static ConcurrentMap<String, ExecutorBiz> executorBizRepository = new ConcurrentHashMap<String, ExecutorBiz>();
|
private static ConcurrentMap<String, ExecutorBiz> executorBizRepository = new ConcurrentHashMap<>();
|
||||||
public static ExecutorBiz getExecutorBiz(String address) throws Exception {
|
public static ExecutorBiz getExecutorBiz(String address) {
|
||||||
// valid
|
// valid
|
||||||
if (address==null || address.trim().length()==0) {
|
if (address==null || address.trim().length()==0) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user