Skip to content

Commit 8c1cf58

Browse files
mysqtochickenlj
authored andcommitted
Merge pull request #748 from mysqto:master
Fix typo implemention -> implementation
1 parent 4b5818f commit 8c1cf58

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/AbstractInterfaceConfig.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,23 +272,23 @@ protected void checkStubAndMock(Class<?> interfaceClass) {
272272
if (ConfigUtils.isNotEmpty(local)) {
273273
Class<?> localClass = ConfigUtils.isDefault(local) ? ReflectUtils.forName(interfaceClass.getName() + "Local") : ReflectUtils.forName(local);
274274
if (!interfaceClass.isAssignableFrom(localClass)) {
275-
throw new IllegalStateException("The local implemention class " + localClass.getName() + " not implement interface " + interfaceClass.getName());
275+
throw new IllegalStateException("The local implementation class " + localClass.getName() + " not implement interface " + interfaceClass.getName());
276276
}
277277
try {
278278
ReflectUtils.findConstructor(localClass, interfaceClass);
279279
} catch (NoSuchMethodException e) {
280-
throw new IllegalStateException("No such constructor \"public " + localClass.getSimpleName() + "(" + interfaceClass.getName() + ")\" in local implemention class " + localClass.getName());
280+
throw new IllegalStateException("No such constructor \"public " + localClass.getSimpleName() + "(" + interfaceClass.getName() + ")\" in local implementation class " + localClass.getName());
281281
}
282282
}
283283
if (ConfigUtils.isNotEmpty(stub)) {
284284
Class<?> localClass = ConfigUtils.isDefault(stub) ? ReflectUtils.forName(interfaceClass.getName() + "Stub") : ReflectUtils.forName(stub);
285285
if (!interfaceClass.isAssignableFrom(localClass)) {
286-
throw new IllegalStateException("The local implemention class " + localClass.getName() + " not implement interface " + interfaceClass.getName());
286+
throw new IllegalStateException("The local implementation class " + localClass.getName() + " not implement interface " + interfaceClass.getName());
287287
}
288288
try {
289289
ReflectUtils.findConstructor(localClass, interfaceClass);
290290
} catch (NoSuchMethodException e) {
291-
throw new IllegalStateException("No such constructor \"public " + localClass.getSimpleName() + "(" + interfaceClass.getName() + ")\" in local implemention class " + localClass.getName());
291+
throw new IllegalStateException("No such constructor \"public " + localClass.getSimpleName() + "(" + interfaceClass.getName() + ")\" in local implementation class " + localClass.getName());
292292
}
293293
}
294294
if (ConfigUtils.isNotEmpty(mock)) {
@@ -302,12 +302,12 @@ protected void checkStubAndMock(Class<?> interfaceClass) {
302302
} else {
303303
Class<?> mockClass = ConfigUtils.isDefault(mock) ? ReflectUtils.forName(interfaceClass.getName() + "Mock") : ReflectUtils.forName(mock);
304304
if (!interfaceClass.isAssignableFrom(mockClass)) {
305-
throw new IllegalStateException("The mock implemention class " + mockClass.getName() + " not implement interface " + interfaceClass.getName());
305+
throw new IllegalStateException("The mock implementation class " + mockClass.getName() + " not implement interface " + interfaceClass.getName());
306306
}
307307
try {
308308
mockClass.getConstructor(new Class<?>[0]);
309309
} catch (NoSuchMethodException e) {
310-
throw new IllegalStateException("No such empty constructor \"public " + mockClass.getSimpleName() + "()\" in mock implemention class " + mockClass.getName());
310+
throw new IllegalStateException("No such empty constructor \"public " + mockClass.getSimpleName() + "()\" in mock implementation class " + mockClass.getName());
311311
}
312312
}
313313
}

dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ protected synchronized void doExport() {
279279
throw new IllegalStateException(e.getMessage(), e);
280280
}
281281
if (!interfaceClass.isAssignableFrom(localClass)) {
282-
throw new IllegalStateException("The local implemention class " + localClass.getName() + " not implement interface " + interfaceName);
282+
throw new IllegalStateException("The local implementation class " + localClass.getName() + " not implement interface " + interfaceName);
283283
}
284284
}
285285
if (stub != null) {
@@ -293,7 +293,7 @@ protected synchronized void doExport() {
293293
throw new IllegalStateException(e.getMessage(), e);
294294
}
295295
if (!interfaceClass.isAssignableFrom(stubClass)) {
296-
throw new IllegalStateException("The stub implemention class " + stubClass.getName() + " not implement interface " + interfaceName);
296+
throw new IllegalStateException("The stub implementation class " + stubClass.getName() + " not implement interface " + interfaceName);
297297
}
298298
}
299299
checkApplication();

dubbo-config/dubbo-config-spring/src/main/resources/META-INF/dubbo.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</xsd:attribute>
5454
<xsd:attribute name="mock" type="xsd:string" use="optional">
5555
<xsd:annotation>
56-
<xsd:documentation><![CDATA[ Use service mock implemention. ]]></xsd:documentation>
56+
<xsd:documentation><![CDATA[ Use service mock implementation. ]]></xsd:documentation>
5757
</xsd:annotation>
5858
</xsd:attribute>
5959
<xsd:attribute name="merger" type="xsd:string" use="optional">
@@ -83,12 +83,12 @@
8383
</xsd:attribute>
8484
<xsd:attribute name="local" type="xsd:string" use="optional">
8585
<xsd:annotation>
86-
<xsd:documentation><![CDATA[ Use service local implemention. ]]></xsd:documentation>
86+
<xsd:documentation><![CDATA[ Use service local implementation. ]]></xsd:documentation>
8787
</xsd:annotation>
8888
</xsd:attribute>
8989
<xsd:attribute name="stub" type="xsd:string" use="optional">
9090
<xsd:annotation>
91-
<xsd:documentation><![CDATA[ Use service local implemention. ]]></xsd:documentation>
91+
<xsd:documentation><![CDATA[ Use service local implementation. ]]></xsd:documentation>
9292
</xsd:annotation>
9393
</xsd:attribute>
9494
<xsd:attribute name="proxy" type="xsd:string" use="optional">

dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/proxy/wrapper/StubProxyFactoryWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public <T> T getProxy(Invoker<T> invoker) throws RpcException {
7272
try {
7373
Class<?> stubClass = ReflectUtils.forName(stub);
7474
if (!serviceType.isAssignableFrom(stubClass)) {
75-
throw new IllegalStateException("The stub implemention class " + stubClass.getName() + " not implement interface " + serviceType.getName());
75+
throw new IllegalStateException("The stub implementation class " + stubClass.getName() + " not implement interface " + serviceType.getName());
7676
}
7777
try {
7878
Constructor<?> constructor = ReflectUtils.findConstructor(stubClass, serviceType);
@@ -89,10 +89,10 @@ public <T> T getProxy(Invoker<T> invoker) throws RpcException {
8989
}
9090
}
9191
} catch (NoSuchMethodException e) {
92-
throw new IllegalStateException("No such constructor \"public " + stubClass.getSimpleName() + "(" + serviceType.getName() + ")\" in stub implemention class " + stubClass.getName(), e);
92+
throw new IllegalStateException("No such constructor \"public " + stubClass.getSimpleName() + "(" + serviceType.getName() + ")\" in stub implementation class " + stubClass.getName(), e);
9393
}
9494
} catch (Throwable t) {
95-
LOGGER.error("Failed to create stub implemention class " + stub + " in consumer " + NetUtils.getLocalHost() + " use dubbo version " + Version.getVersion() + ", cause: " + t.getMessage(), t);
95+
LOGGER.error("Failed to create stub implementation class " + stub + " in consumer " + NetUtils.getLocalHost() + " use dubbo version " + Version.getVersion() + ", cause: " + t.getMessage(), t);
9696
// ignore
9797
}
9898
}

dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/support/MockInvoker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Result invoke(Invocation invocation) throws RpcException {
127127
Invoker<T> invoker = getInvoker(mock);
128128
return invoker.invoke(invocation);
129129
} catch (Throwable t) {
130-
throw new RpcException("Failed to create mock implemention class " + mock, t);
130+
throw new RpcException("Failed to create mock implementation class " + mock, t);
131131
}
132132
}
133133
}
@@ -166,11 +166,11 @@ private Invoker<T> getInvoker(String mockService) {
166166

167167
Class<?> mockClass = ReflectUtils.forName(mockService);
168168
if (!serviceType.isAssignableFrom(mockClass)) {
169-
throw new IllegalArgumentException("The mock implemention class " + mockClass.getName() + " not implement interface " + serviceType.getName());
169+
throw new IllegalArgumentException("The mock implementation class " + mockClass.getName() + " not implement interface " + serviceType.getName());
170170
}
171171

172172
if (!serviceType.isAssignableFrom(mockClass)) {
173-
throw new IllegalArgumentException("The mock implemention class " + mockClass.getName() + " not implement interface " + serviceType.getName());
173+
throw new IllegalArgumentException("The mock implementation class " + mockClass.getName() + " not implement interface " + serviceType.getName());
174174
}
175175
try {
176176
T mockObject = (T) mockClass.newInstance();
@@ -180,7 +180,7 @@ private Invoker<T> getInvoker(String mockService) {
180180
}
181181
return invoker;
182182
} catch (InstantiationException e) {
183-
throw new IllegalStateException("No such empty constructor \"public " + mockClass.getSimpleName() + "()\" in mock implemention class " + mockClass.getName(), e);
183+
throw new IllegalStateException("No such empty constructor \"public " + mockClass.getSimpleName() + "()\" in mock implementation class " + mockClass.getName(), e);
184184
} catch (IllegalAccessException e) {
185185
throw new IllegalStateException(e);
186186
}

0 commit comments

Comments
 (0)