Skip to content

Commit

Permalink
fix typo (apache#3491)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored and lixiaojiee committed Feb 17, 2019
1 parent d33784d commit 2b12c16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public class Constants {

public static final String PROTOCOL_KEY = "protocol";

public static final String DOBBO_PROTOCOL = DUBBO;
public static final String DUBBO_PROTOCOL = DUBBO;

public static final String ZOOKEEPER_PROTOCOL = "zookeeper";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ protected URL loadMonitor(URL registryURL) {
if (getExtensionLoader(MonitorFactory.class).hasExtension("logstat")) {
map.put(Constants.PROTOCOL_KEY, "logstat");
} else {
map.put(Constants.PROTOCOL_KEY, Constants.DOBBO_PROTOCOL);
map.put(Constants.PROTOCOL_KEY, Constants.DUBBO_PROTOCOL);
}
}
return UrlUtils.parseURL(address, map);
} else if (Constants.REGISTRY_PROTOCOL.equals(monitor.getProtocol()) && registryURL != null) {
return registryURL.setProtocol(Constants.DOBBO_PROTOCOL).addParameter(Constants.PROTOCOL_KEY, Constants.REGISTRY_PROTOCOL).addParameterAndEncoded(Constants.REFER_KEY, StringUtils.toQueryString(map));
return registryURL.setProtocol(Constants.DUBBO_PROTOCOL).addParameter(Constants.PROTOCOL_KEY, Constants.REGISTRY_PROTOCOL).addParameterAndEncoded(Constants.REFER_KEY, StringUtils.toQueryString(map));
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public String getCodec() {
}

public void setCodec(String codec) {
if (Constants.DOBBO_PROTOCOL.equals(name)) {
if (Constants.DUBBO_PROTOCOL.equals(name)) {
checkMultiExtension(Codec.class, Constants.CODEC_KEY, codec);
}
this.codec = codec;
Expand All @@ -328,7 +328,7 @@ public String getSerialization() {
}

public void setSerialization(String serialization) {
if (Constants.DOBBO_PROTOCOL.equals(name)) {
if (Constants.DUBBO_PROTOCOL.equals(name)) {
checkMultiExtension(Serialization.class, Constants.SERIALIZATION_KEY, serialization);
}
this.serialization = serialization;
Expand Down Expand Up @@ -371,7 +371,7 @@ public String getServer() {
}

public void setServer(String server) {
if (Constants.DOBBO_PROTOCOL.equals(name)) {
if (Constants.DUBBO_PROTOCOL.equals(name)) {
checkMultiExtension(Transporter.class, Constants.SERVER_KEY, server);
}
this.server = server;
Expand All @@ -382,7 +382,7 @@ public String getClient() {
}

public void setClient(String client) {
if (Constants.DOBBO_PROTOCOL.equals(name)) {
if (Constants.DUBBO_PROTOCOL.equals(name)) {
checkMultiExtension(Transporter.class, Constants.CLIENT_KEY, client);
}
this.client = client;
Expand Down

0 comments on commit 2b12c16

Please sign in to comment.