This is an automated email from the ASF dual-hosted git repository.

jefflv pushed a commit to branch 3.x-dev
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/3.x-dev by this push:
     new adf4700  remove getAttributeMap of ServiceMetada (#3542)
adf4700 is described below

commit adf4700165ec13adcc377a946beed8d11b72317f
Author: jefflv <[email protected]>
AuthorDate: Fri Feb 22 17:34:22 2019 +0800

    remove getAttributeMap of ServiceMetada (#3542)
---
 .../src/main/java/org/apache/dubbo/rpc/model/ServiceMetadata.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/model/ServiceMetadata.java
 
b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/model/ServiceMetadata.java
index 7ce7b9b..7a9fb16 100644
--- 
a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/model/ServiceMetadata.java
+++ 
b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/model/ServiceMetadata.java
@@ -55,8 +55,12 @@ public class ServiceMetadata {
         return attachments;
     }
 
-    public Map<String, Object> getAttributeMap() {
-        return attributeMap;
+//    public Map<String, Object> getAttributeMap() {
+//        return attributeMap;
+//    }
+
+    public Object getAttribute(String key) {
+        return attributeMap.get(key);
     }
 
     public void addAttribute(String key, Object value) {

Reply via email to