fix convertMethodConfig2AsyncInfo spelling error (#4563)

This commit is contained in:
Licho Sun 2019-07-15 13:57:33 +08:00 committed by Ian Luo
parent a88b1e295b
commit 843e2ee35b
3 changed files with 4 additions and 4 deletions

View File

@ -108,12 +108,12 @@ public class MethodConfigTest {
}
@Test
public void testConverMethodConfig2AsyncInfo() throws Exception{
public void testConvertMethodConfig2AsyncInfo() throws Exception{
org.apache.dubbo.config.MethodConfig methodConfig = new org.apache.dubbo.config.MethodConfig();
methodConfig.setOninvokeMethod("setName");
methodConfig.setOninvoke(new Person());
ConsumerMethodModel.AsyncMethodInfo methodInfo = org.apache.dubbo.config.MethodConfig.convertMethodConfig2AyncInfo(methodConfig);
ConsumerMethodModel.AsyncMethodInfo methodInfo = org.apache.dubbo.config.MethodConfig.convertMethodConfig2AsyncInfo(methodConfig);
assertEquals(methodInfo.getOninvokeMethod(), Person.class.getMethod("setName", String.class));
}

View File

@ -249,7 +249,7 @@ public abstract class AbstractConfig implements Serializable {
}
}
protected static ConsumerMethodModel.AsyncMethodInfo convertMethodConfig2AyncInfo(MethodConfig methodConfig) {
protected static ConsumerMethodModel.AsyncMethodInfo convertMethodConfig2AsyncInfo(MethodConfig methodConfig) {
if (methodConfig == null || (methodConfig.getOninvoke() == null && methodConfig.getOnreturn() == null && methodConfig.getOnthrow() == null)) {
return null;
}

View File

@ -314,7 +314,7 @@ public class ReferenceConfig<T> extends AbstractReferenceConfig {
map.put(methodConfig.getName() + ".retries", "0");
}
}
attributes.put(methodConfig.getName(), convertMethodConfig2AyncInfo(methodConfig));
attributes.put(methodConfig.getName(), convertMethodConfig2AsyncInfo(methodConfig));
}
}