From 2235f216b9155610c51cec2a404e526efb305695 Mon Sep 17 00:00:00 2001 From: gaoyan Date: Mon, 23 Dec 2024 16:43:48 +0800 Subject: [PATCH] [Bug]Change k8s StringUtils import (#4081) Co-authored-by: gaoyan1998 --- .../java/org/dinky/gateway/kubernetes/KubernetesGateway.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesGateway.java b/dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesGateway.java index 2821583367..00d1757f2c 100644 --- a/dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesGateway.java +++ b/dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesGateway.java @@ -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; @@ -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);