mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
[Improvement] Replace commons-lang 2 function invocations with commons-lang3 (#11810)
* [Improvement] Replace commons-lang 2 function invocations with commons-lang3
This commit is contained in:
parent
28469fc9b2
commit
444c7e6eb7
@ -35,7 +35,7 @@ import org.apache.dolphinscheduler.dao.mapper.K8sNamespaceMapper;
|
||||
import org.apache.dolphinscheduler.remote.exceptions.RemotingException;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -31,7 +31,7 @@ import org.apache.dolphinscheduler.dao.mapper.K8sNamespaceMapper;
|
||||
import org.apache.dolphinscheduler.remote.exceptions.RemotingException;
|
||||
import org.apache.dolphinscheduler.api.k8s.K8sClientService;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -396,7 +396,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
if (CollectionUtils.isNotEmpty(codes)) {
|
||||
logger.error("the task code is not exist");
|
||||
putMsg(result, Status.TASK_DEFINE_NOT_EXIST,
|
||||
org.apache.commons.lang.StringUtils.join(codes, Constants.COMMA));
|
||||
StringUtils.join(codes, Constants.COMMA));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -963,7 +963,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
@Override
|
||||
public void batchExportProcessDefinitionByCodes(User loginUser, long projectCode, String codes,
|
||||
HttpServletResponse response) {
|
||||
if (org.apache.commons.lang.StringUtils.isEmpty(codes)) {
|
||||
if (StringUtils.isEmpty(codes)) {
|
||||
return;
|
||||
}
|
||||
Project project = projectMapper.queryByCode(projectCode);
|
||||
@ -1891,7 +1891,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
return result;
|
||||
}
|
||||
|
||||
if (org.apache.commons.lang.StringUtils.isEmpty(processDefinitionCodes)) {
|
||||
if (StringUtils.isEmpty(processDefinitionCodes)) {
|
||||
putMsg(result, Status.PROCESS_DEFINITION_CODES_IS_EMPTY, processDefinitionCodes);
|
||||
return result;
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ public class ProcessTaskRelationServiceImpl extends BaseServiceImpl implements P
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(downstreamList)) {
|
||||
putMsg(result, Status.TASK_HAS_DOWNSTREAM, org.apache.commons.lang.StringUtils.join(downstreamList, ","));
|
||||
putMsg(result, Status.TASK_HAS_DOWNSTREAM, StringUtils.join(downstreamList, ","));
|
||||
return result;
|
||||
}
|
||||
updateProcessDefiniteVersion(loginUser, result, processDefinition);
|
||||
|
@ -19,7 +19,7 @@ package org.apache.dolphinscheduler.common.utils;
|
||||
|
||||
import org.apache.dolphinscheduler.common.shell.ShellExecutor;
|
||||
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
package org.apache.dolphinscheduler.common;
|
||||
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
@ -17,7 +17,7 @@
|
||||
package org.apache.dolphinscheduler.common.os;
|
||||
|
||||
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.OSUtils;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
@ -101,7 +101,7 @@ public class CommonUtils {
|
||||
public static String getDataQualityJarName() {
|
||||
String dqsJarName = PropertyUtils.getString(DATA_QUALITY_JAR_NAME);
|
||||
|
||||
if (org.apache.commons.lang.StringUtils.isEmpty(dqsJarName)) {
|
||||
if (StringUtils.isEmpty(dqsJarName)) {
|
||||
return "dolphinscheduler-data-quality.jar";
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
package org.apache.dolphinscheduler.server.master.registry;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.dolphinscheduler.common.Constants;
|
||||
import org.apache.dolphinscheduler.common.enums.NodeType;
|
||||
import org.apache.dolphinscheduler.common.model.Server;
|
||||
|
@ -18,7 +18,7 @@
|
||||
package org.apache.dolphinscheduler.plugin.task.chunjun;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.apache.dolphinscheduler.plugin.task.api.AbstractTaskExecutor;
|
||||
import org.apache.dolphinscheduler.plugin.task.api.ShellCommandExecutor;
|
||||
import org.apache.dolphinscheduler.plugin.task.api.TaskConstants;
|
||||
|
@ -19,7 +19,7 @@ package org.apache.dolphinscheduler.server.worker.utils;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.apache.dolphinscheduler.common.exception.StorageOperateNoConfiguredException;
|
||||
import org.apache.dolphinscheduler.common.storage.StorageOperate;
|
||||
|
Loading…
Reference in New Issue
Block a user