You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2021/01/20 07:26:00 UTC
[dubbo] branch master updated: replace common-lang3 StringUtils
with dubbo-common StringUtils in NacosRegistry (#7106)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 66e8abc replace common-lang3 StringUtils with dubbo-common StringUtils in NacosRegistry (#7106)
66e8abc is described below
commit 66e8abc00effbf68c93b68dac04790aa1fd22ede
Author: Wu Zhiguo <wz...@gmail.com>
AuthorDate: Wed Jan 20 15:25:05 2021 +0800
replace common-lang3 StringUtils with dubbo-common StringUtils in NacosRegistry (#7106)
fix #7105
---
.../src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java b/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
index 7c56a2a..4d25bc1 100644
--- a/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
+++ b/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
@@ -320,7 +320,7 @@ public class NacosRegistry extends FailbackRegistry {
private void appendIfPresent(StringBuilder target, URL url, String parameterName) {
String parameterValue = url.getParameter(parameterName);
- if (!org.apache.commons.lang3.StringUtils.isBlank(parameterValue)) {
+ if (!StringUtils.isBlank(parameterValue)) {
target.append(SERVICE_NAME_SEPARATOR).append(parameterValue);
}
}