From 6785491f15fe55518b173a4503587a9f5a81e780 Mon Sep 17 00:00:00 2001 From: zhenxianyimeng <1920405993@qq.com> Date: Wed, 11 Mar 2020 18:16:14 +0800 Subject: [PATCH] replace deprecated methods in ParamUtil --- .../main/java/com/alibaba/nacos/client/utils/ParamUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/utils/ParamUtil.java b/client/src/main/java/com/alibaba/nacos/client/utils/ParamUtil.java index f3d017fb3..e040880d8 100644 --- a/client/src/main/java/com/alibaba/nacos/client/utils/ParamUtil.java +++ b/client/src/main/java/com/alibaba/nacos/client/utils/ParamUtil.java @@ -20,6 +20,7 @@ import com.alibaba.nacos.api.SystemPropertyKeyConst; import com.alibaba.nacos.api.common.Constants; import com.alibaba.nacos.client.config.impl.HttpSimpleClient; import org.slf4j.Logger; +import org.apache.commons.lang3.StringUtils; import java.io.InputStream; import java.util.Properties; @@ -174,12 +175,12 @@ public class ParamUtil { @Override public String call() { String namespace = System.getenv(PropertyKeyConst.SystemEnv.ALIBABA_ALIWARE_NAMESPACE); - return org.apache.commons.lang3.StringUtils.isNotBlank(namespace) ? namespace : StringUtils.EMPTY; + return StringUtils.isNotBlank(namespace) ? namespace : StringUtils.EMPTY; } }); } - if (org.apache.commons.lang3.StringUtils.isBlank(namespaceTmp)) { + if (StringUtils.isBlank(namespaceTmp)) { namespaceTmp = properties.getProperty(PropertyKeyConst.NAMESPACE); } return StringUtils.isNotBlank(namespaceTmp) ? namespaceTmp.trim() : StringUtils.EMPTY;