You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2020/03/10 12:56:58 UTC
[dubbo] branch master updated: fix variable name typo in
ServiceConfig.java (#5840)
This is an automated email from the ASF dual-hosted git repository.
hyunkun 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 f3e78c2 fix variable name typo in ServiceConfig.java (#5840)
f3e78c2 is described below
commit f3e78c2e37091a99a5696bc450f49178d87b6fe2
Author: li.can <li...@apache.org>
AuthorDate: Tue Mar 10 20:56:13 2020 +0800
fix variable name typo in ServiceConfig.java (#5840)
---
.../src/main/java/org/apache/dubbo/config/ServiceConfig.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
index 85c8aa4..0792d12 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
@@ -685,11 +685,11 @@ public class ServiceConfig<T> extends ServiceConfigBase<T> {
private String getValueFromConfig(ProtocolConfig protocolConfig, String key) {
String protocolPrefix = protocolConfig.getName().toUpperCase() + "_";
- String port = ConfigUtils.getSystemProperty(protocolPrefix + key);
- if (StringUtils.isEmpty(port)) {
- port = ConfigUtils.getSystemProperty(key);
+ String value = ConfigUtils.getSystemProperty(protocolPrefix + key);
+ if (StringUtils.isEmpty(value)) {
+ value = ConfigUtils.getSystemProperty(key);
}
- return port;
+ return value;
}
private Integer getRandomPort(String protocol) {