This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git
commit 7fab8eda0ed015c40bca7757b14b85877d6bbae2 Author: fangnoo <[email protected]> AuthorDate: Tue Jun 26 19:56:59 2018 +0800 Update LocalServiceRegistryClientImpl.java --- .../serviceregistry/client/LocalServiceRegistryClientImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/LocalServiceRegistryClientImpl.java b/service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/LocalServiceRegistryClientImpl.java index ff3c7ea..7daaa03 100644 --- a/service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/LocalServiceRegistryClientImpl.java +++ b/service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/LocalServiceRegistryClientImpl.java @@ -118,8 +118,9 @@ public class LocalServiceRegistryClientImpl implements ServiceRegistryClient { String appId = (String) serviceConfig.get("appid"); String version = (String) serviceConfig.get("version"); String serviceId = (String) serviceConfig.get("id"); + @SuppressWarnings("unchecked") List<String> schemas = (List<String> ) serviceConfig.get("schemaIds"); - + Microservice microservice = new Microservice(); microservice.setAppId(appId == null ? DEFAULT_APPLICATION_ID : appId); microservice.setServiceName(name); @@ -129,7 +130,7 @@ public class LocalServiceRegistryClientImpl implements ServiceRegistryClient { if (schemas != null) { microservice.setSchemas(schemas); } - + Map<String, MicroserviceInstance> instanceMap = new ConcurrentHashMap<>(); for (Map<String, Object> instanceConfig : instancesConfig) { @SuppressWarnings("unchecked")
