You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/07/19 04:46:10 UTC
[dubbo] branch 3.0 updated: optimize unstandard code (#8272)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 4bc470f optimize unstandard code (#8272)
4bc470f is described below
commit 4bc470ff09bc791fe548669424660264bceb8793
Author: JdjzV <dj...@126.com>
AuthorDate: Mon Jul 19 12:46:00 2021 +0800
optimize unstandard code (#8272)
* optimize some unstandardized code
* fix ut
Co-authored-by: djz段竞哲 <jz...@trip.com>
---
.../main/java/org/apache/dubbo/config/context/ConfigManager.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dubbo-common/src/main/java/org/apache/dubbo/config/context/ConfigManager.java b/dubbo-common/src/main/java/org/apache/dubbo/config/context/ConfigManager.java
index 36d8ed4..a91633f 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/config/context/ConfigManager.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/config/context/ConfigManager.java
@@ -662,10 +662,10 @@ public class ConfigManager extends LifecycleAdapter implements FrameworkExt {
}
String key = getId(config);
- if (key == null) {
- // generate key for non-default config compatible with API usages
- key = generateConfigId(config);
- }
+ if (key == null) {
+ // generate key for non-default config compatible with API usages
+ key = generateConfigId(config);
+ }
C existedConfig = configsMap.putIfAbsent(key, config);
if (isEquals(existedConfig, config)) {