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 2018/09/03 05:13:57 UTC
[incubator-dubbo] branch dev-metadata updated: Change variable name
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch dev-metadata
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/dev-metadata by this push:
new 2ba2ddd Change variable name
2ba2ddd is described below
commit 2ba2dddfa95c12d8fb49b629addd67c8eb1ba0ac
Author: ken.lj <ke...@gmail.com>
AuthorDate: Mon Sep 3 13:13:48 2018 +0800
Change variable name
---
.../org/apache/dubbo/registry/integration/parser/ConfigParser.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
index 147f454..4b2e4c0 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
@@ -56,9 +56,9 @@ public class ConfigParser {
public static <T> T parseObject(String rawConfig, Class<T> clazz) {
Constructor constructor = new Constructor(clazz);
- TypeDescription carDescription = new TypeDescription(clazz);
- carDescription.addPropertyParameters("items", ConfigItem.class);
- constructor.addTypeDescription(carDescription);
+ TypeDescription itemDescription = new TypeDescription(clazz);
+ itemDescription.addPropertyParameters("items", ConfigItem.class);
+ constructor.addTypeDescription(itemDescription);
Yaml yaml = new Yaml(constructor);
return yaml.load(rawConfig);