【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);
|
||||
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user