Skip to content

Commit

Permalink
modify some typos (apache#3257)
Browse files Browse the repository at this point in the history
* modify some typos

* fix some other addionalParameterKeys and paramter typos
  • Loading branch information
mimihom authored and Kiddinglife committed Jan 17, 2019
1 parent a62b4e5 commit 2d40f0f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ public class Constants {
*/
public static final String SIMPLE_CONSUMER_CONFIG_KEY = "simple.consumer.config";
/**
* After simplify the registry, should add some paramter individually for provider.
* After simplify the registry, should add some parameter individually for provider.
* @since 2.7.0
*/
public static final String EXTRA_PROVIDER_CONFIG_KEYS_KEY = "extra.provider.keys";
/**
* After simplify the registry, should add some paramter individually for consumer.
* After simplify the registry, should add some parameter individually for consumer.
*
* @since 2.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public boolean getBooleanParameter(String key, boolean defaultValue) {
return Boolean.parseBoolean(value);
}

public boolean hasParamter(String key) {
public boolean hasParameter(String key) {
String value = getParameter(key);
return value != null && value.length() > 0;
}
Expand Down Expand Up @@ -234,7 +234,7 @@ public boolean getMethodBooleanParameter(String method, String key, boolean defa
return Boolean.parseBoolean(value);
}

public boolean hasMethodParamter(String method, String key) {
public boolean hasMethodParameter(String method, String key) {
String value = getMethodParameter(method, key);
return value != null && value.length() > 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private void verify(Class<?> interfaceClass, Class<?> localClass) {
}

try {
//Check if the localClass a contructor with parameter who's type is interfaceClass
//Check if the localClass a constructor with parameter who's type is interfaceClass
ReflectUtils.findConstructor(localClass, interfaceClass);
} catch (NoSuchMethodException e) {
throw new IllegalStateException("No such constructor \"public " + localClass.getSimpleName() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public class RegistryConfig extends AbstractConfig {
*/
private Boolean simple;
/**
* After simplify the registry, should add some paramter individually.
* addionalParameterKeys = addParamKeys
* After simplify the registry, should add some parameter individually.
* additionalParameterKeys = addParamKeys
*
* @since 2.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ private URL getRegisteredConsumerUrl(final URL consumerUrl, URL registryUrl) {
}

// available to test
public String[] getParamsToRegistry(String[] defaultKeys, String[] addionalParameterKeys) {
int additionalLen = addionalParameterKeys.length;
public String[] getParamsToRegistry(String[] defaultKeys, String[] additionalParameterKeys) {
int additionalLen = additionalParameterKeys.length;
String[] registryParams = new String[defaultKeys.length + additionalLen];
System.arraycopy(defaultKeys, 0, registryParams, 0, defaultKeys.length);
System.arraycopy(addionalParameterKeys, 0, registryParams, defaultKeys.length, additionalLen);
System.arraycopy(additionalParameterKeys, 0, registryParams, defaultKeys.length, additionalLen);
return registryParams;
}

Expand Down

0 comments on commit 2d40f0f

Please sign in to comment.