Skip to content

Commit c833069

Browse files
authored
Fix (#14671)
1 parent ddb3fba commit c833069

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/support/TelnetUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public static String toTable(List<String> header, List<List<String>> table) {
120120
for (int j = 0; j < widths.length; j++) {
121121
String cell = row.get(j);
122122
rowbuf.append(' ');
123-
int remaing = cell.length();
124-
while (remaing > 0) {
123+
int remaining = cell.length();
124+
while (remaining > 0) {
125125

126126
if (rowbuf.length() >= totalWidth) {
127127
buf.append(rowbuf.toString());
@@ -132,8 +132,8 @@ public static String toTable(List<String> header, List<List<String>> table) {
132132
// }
133133
}
134134

135-
rowbuf.append(cell, cell.length() - remaing, cell.length() - remaing + 1);
136-
remaing--;
135+
rowbuf.append(cell, cell.length() - remaining, cell.length() - remaining + 1);
136+
remaining--;
137137
}
138138
int pad = widths[j] - cell.length();
139139
if (pad > 0) {

dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChanelHandlerTest.java renamed to dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/ChannelHandlerTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
import static org.apache.dubbo.common.constants.LoggerCodeConstants.CONFIG_UNDEFINED_ARGUMENT;
3232

3333
/**
34-
* ChanelHandlerTest
34+
* ChannelHandlerTest
3535
* <p>
3636
* mvn clean test -Dtest=*PerformanceClientTest -Dserver=10.20.153.187:9911
3737
*/
38-
class ChanelHandlerTest {
38+
class ChannelHandlerTest {
3939

40-
private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChanelHandlerTest.class);
40+
private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChannelHandlerTest.class);
4141

4242
public static ExchangeClient initClient(String url) {
4343
// Create client and build connection
@@ -113,12 +113,12 @@ public PeformanceTestHandler(String url) {
113113

114114
@Override
115115
public void connected(Channel channel) throws RemotingException {
116-
System.out.println("connected event,chanel;" + channel);
116+
System.out.println("connected event,channel;" + channel);
117117
}
118118

119119
@Override
120120
public void disconnected(Channel channel) throws RemotingException {
121-
System.out.println("disconnected event,chanel;" + channel);
121+
System.out.println("disconnected event,channel;" + channel);
122122
initClient(url);
123123
}
124124

dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/PerformanceClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ public PeformanceTestHandler() {
237237

238238
@Override
239239
public void connected(Channel channel) throws RemotingException {
240-
System.out.println("connected event,chanel;" + channel);
240+
System.out.println("connected event,channel;" + channel);
241241
}
242242

243243
@Override
244244
public void disconnected(Channel channel) throws RemotingException {
245-
System.out.println("disconnected event,chanel;" + channel);
245+
System.out.println("disconnected event,channel;" + channel);
246246
}
247247
}
248248
}

dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private static boolean isInstancesOverLimit(
318318
// client side error
319319
throw new IllegalStateException("interface " + interfaceClass
320320
+ " `s callback instances num exceed providers limit :" + limit + " ,current num: " + (count + 1)
321-
+ ". The new callback service will not work !!! you can cancle the callback service which exported before. channel :"
321+
+ ". The new callback service will not work !!! you can cancel the callback service which exported before. channel :"
322322
+ channel);
323323
} else {
324324
return false;

dubbo-rpc/dubbo-rpc-injvm/src/test/java/org/apache/dubbo/rpc/protocol/injvm/InjvmClassLoaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void testDifferentClassLoaderRequest() throws Exception {
133133
Assertions.assertEquals(resultClazzCustom3, result1.getClass());
134134
Assertions.assertNotEquals(classLoader2, result1.getClass().getClassLoader());
135135

136-
// invoke reqeust param should load from classLoader1 ( provider side classLoader )
136+
// invoke request param should load from classLoader1 ( provider side classLoader )
137137
Assertions.assertEquals(
138138
classLoader1, innerRequestReference.get().getClass().getClassLoader());
139139

dubbo-rpc/dubbo-rpc-triple/src/main/proto/reflectionV1Alpha.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ message ExtensionRequest {
8080
message ServerReflectionResponse {
8181
string valid_host = 1;
8282
ServerReflectionRequest original_request = 2;
83-
// The server set one of the following fields accroding to the message_request
83+
// The server set one of the following fields according to the message_request
8484
// in the request.
8585
oneof message_response {
8686
// This message is used to answer file_by_filename, file_containing_symbol,
@@ -91,7 +91,7 @@ message ServerReflectionResponse {
9191
// that were previously sent in response to earlier requests in the stream.
9292
FileDescriptorResponse file_descriptor_response = 4;
9393

94-
// This message is used to answer all_extension_numbers_of_type requst.
94+
// This message is used to answer all_extension_numbers_of_type request.
9595
ExtensionNumberResponse all_extension_numbers_response = 5;
9696

9797
// This message is used to answer list_services request.

0 commit comments

Comments
 (0)