Skip to content

Commit

Permalink
[Bug]Change k8s StringUtils import (#4081)
Browse files Browse the repository at this point in the history
Co-authored-by: gaoyan1998 <gaoyan1998@users.noreply.github.com>
  • Loading branch information
gaoyan1998 and gaoyan1998 authored Dec 23, 2024
1 parent 5978fc2 commit 2235f21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import alluxio.shaded.client.org.apache.commons.lang3.StringUtils;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.text.StrFormatter;
import cn.hutool.core.util.ReflectUtil;
import cn.hutool.core.util.StrUtil;
import io.fabric8.kubernetes.api.model.Pod;
import lombok.Data;
import lombok.EqualsAndHashCode;
Expand Down Expand Up @@ -150,7 +150,7 @@ protected void initConfig() {
boolean isValidTaskName(String jobName) {
String JOB_NAME_PATTERN = "^[a-z0-9][a-z0-9.-]*[a-z0-9]$";
Pattern pattern = Pattern.compile(JOB_NAME_PATTERN);
if (StringUtils.isBlank(jobName)) {
if (StrUtil.isEmpty(jobName)) {
return false;
}
Matcher matcher = pattern.matcher(jobName);
Expand Down

0 comments on commit 2235f21

Please sign in to comment.