diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/support/TelnetUtils.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/support/TelnetUtils.java index 8a78d599ff9..6ee82de3491 100644 --- a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/support/TelnetUtils.java +++ b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/support/TelnetUtils.java @@ -120,8 +120,8 @@ public static String toTable(List header, List> table) { for (int j = 0; j < widths.length; j++) { String cell = row.get(j); rowbuf.append(' '); - int remaing = cell.length(); - while (remaing > 0) { + int remaining = cell.length(); + while (remaining > 0) { if (rowbuf.length() >= totalWidth) { buf.append(rowbuf.toString()); @@ -132,8 +132,8 @@ public static String toTable(List header, List> table) { // } } - rowbuf.append(cell, cell.length() - remaing, cell.length() - remaing + 1); - remaing--; + rowbuf.append(cell, cell.length() - remaining, cell.length() - remaining + 1); + remaining--; } int pad = widths[j] - cell.length(); if (pad > 0) { diff --git a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChanelHandlerTest.java b/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChannelHandlerTest.java similarity index 95% rename from dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChanelHandlerTest.java rename to dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChannelHandlerTest.java index 8c3bde9838a..361b30767d8 100644 --- a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChanelHandlerTest.java +++ b/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChannelHandlerTest.java @@ -31,13 +31,13 @@ import static org.apache.dubbo.common.constants.LoggerCodeConstants.CONFIG_UNDEFINED_ARGUMENT; /** - * ChanelHandlerTest + * ChannelHandlerTest *

* mvn clean test -Dtest=*PerformanceClientTest -Dserver=10.20.153.187:9911 */ -class ChanelHandlerTest { +class ChannelHandlerTest { - private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChanelHandlerTest.class); + private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChannelHandlerTest.class); public static ExchangeClient initClient(String url) { // Create client and build connection @@ -113,12 +113,12 @@ public PeformanceTestHandler(String url) { @Override public void connected(Channel channel) throws RemotingException { - System.out.println("connected event,chanel;" + channel); + System.out.println("connected event,channel;" + channel); } @Override public void disconnected(Channel channel) throws RemotingException { - System.out.println("disconnected event,chanel;" + channel); + System.out.println("disconnected event,channel;" + channel); initClient(url); } diff --git a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/PerformanceClientTest.java b/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/PerformanceClientTest.java index 49b6bb763dc..16c8827f8ed 100644 --- a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/PerformanceClientTest.java +++ b/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/PerformanceClientTest.java @@ -237,12 +237,12 @@ public PeformanceTestHandler() { @Override public void connected(Channel channel) throws RemotingException { - System.out.println("connected event,chanel;" + channel); + System.out.println("connected event,channel;" + channel); } @Override public void disconnected(Channel channel) throws RemotingException { - System.out.println("disconnected event,chanel;" + channel); + System.out.println("disconnected event,channel;" + channel); } } } diff --git a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java index 6750751e6a3..a0af3b88dd5 100644 --- a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java +++ b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java @@ -318,7 +318,7 @@ private static boolean isInstancesOverLimit( // client side error throw new IllegalStateException("interface " + interfaceClass + " `s callback instances num exceed providers limit :" + limit + " ,current num: " + (count + 1) - + ". The new callback service will not work !!! you can cancle the callback service which exported before. channel :" + + ". The new callback service will not work !!! you can cancel the callback service which exported before. channel :" + channel); } else { return false; diff --git a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmClassLoaderTest.java b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmClassLoaderTest.java index 45534ff5ba6..c2671543e7c 100644 --- a/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmClassLoaderTest.java +++ b/dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmClassLoaderTest.java @@ -133,7 +133,7 @@ void testDifferentClassLoaderRequest() throws Exception { Assertions.assertEquals(resultClazzCustom3, result1.getClass()); Assertions.assertNotEquals(classLoader2, result1.getClass().getClassLoader()); - // invoke reqeust param should load from classLoader1 ( provider side classLoader ) + // invoke request param should load from classLoader1 ( provider side classLoader ) Assertions.assertEquals( classLoader1, innerRequestReference.get().getClass().getClassLoader()); diff --git a/dubbo-rpc/dubbo-rpc-triple/src/main/proto/reflectionV1Alpha.proto b/dubbo-rpc/dubbo-rpc-triple/src/main/proto/reflectionV1Alpha.proto index 8c5e06fe148..a3984b55c2d 100644 --- a/dubbo-rpc/dubbo-rpc-triple/src/main/proto/reflectionV1Alpha.proto +++ b/dubbo-rpc/dubbo-rpc-triple/src/main/proto/reflectionV1Alpha.proto @@ -80,7 +80,7 @@ message ExtensionRequest { message ServerReflectionResponse { string valid_host = 1; ServerReflectionRequest original_request = 2; - // The server set one of the following fields accroding to the message_request + // The server set one of the following fields according to the message_request // in the request. oneof message_response { // This message is used to answer file_by_filename, file_containing_symbol, @@ -91,7 +91,7 @@ message ServerReflectionResponse { // that were previously sent in response to earlier requests in the stream. FileDescriptorResponse file_descriptor_response = 4; - // This message is used to answer all_extension_numbers_of_type requst. + // This message is used to answer all_extension_numbers_of_type request. ExtensionNumberResponse all_extension_numbers_response = 5; // This message is used to answer list_services request.