提交 02b636a0 编写于 作者: C chao.liuc

URL.serviceKey修改 如果interface & path 都是null,则返回 null

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@143 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 59113918
......@@ -293,12 +293,14 @@ public final class URL implements Serializable {
}
public String getServiceKey() {
String inf = getParameter(Constants.INTERFACE_KEY, path);
if (inf == null) return null;
StringBuilder buf = new StringBuilder();
String group = getParameter(Constants.GROUP_KEY);
if (group != null && group.length() > 0) {
buf.append(group).append("/");
}
buf.append(getParameter(Constants.INTERFACE_KEY, path));
buf.append(inf);
String version = getParameter(Constants.VERSION_KEY);
if (version != null && version.length() > 0) {
buf.append(":").append(version);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册