Skip to content

Commit 6c9f74c

Browse files
CrazyHZMbeiwei30
authored andcommitted
Modified to lower camel case (#2945)
1 parent 61eff59 commit 6c9f74c

File tree

2 files changed

+10
-10
lines changed
  • dubbo-remoting

2 files changed

+10
-10
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public String telnet(Channel channel, String message) {
5252
if (!StringUtils.isInteger(str[0])) {
5353
LoggerFactory.setLevel(Level.valueOf(message.toUpperCase()));
5454
} else {
55-
int SHOW_LOG_LENGTH = Integer.parseInt(str[0]);
55+
int showLogLength = Integer.parseInt(str[0]);
5656

5757
if (file != null && file.exists()) {
5858
try {
@@ -62,12 +62,12 @@ public String telnet(Channel channel, String message) {
6262
try {
6363
size = filechannel.size();
6464
ByteBuffer bb;
65-
if (size <= SHOW_LOG_LENGTH) {
65+
if (size <= showLogLength) {
6666
bb = ByteBuffer.allocate((int) size);
6767
filechannel.read(bb, 0);
6868
} else {
69-
int pos = (int) (size - SHOW_LOG_LENGTH);
70-
bb = ByteBuffer.allocate(SHOW_LOG_LENGTH);
69+
int pos = (int) (size - showLogLength);
70+
bb = ByteBuffer.allocate(showLogLength);
7171
filechannel.read(bb, pos);
7272
}
7373
bb.flip();

dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/logging/MessageFormatter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ static FormattingTuple arrayFormat(final String messagePattern,
175175
int j;
176176
StringBuffer sbuf = new StringBuffer(messagePattern.length() + 50);
177177

178-
int L;
179-
for (L = 0; L < argArray.length; L++) {
178+
int l;
179+
for (l = 0; l < argArray.length; l++) {
180180

181181
j = messagePattern.indexOf(DELIM_STR, i);
182182

@@ -194,7 +194,7 @@ static FormattingTuple arrayFormat(final String messagePattern,
194194
} else {
195195
if (isEscapedDelimeter(messagePattern, j)) {
196196
if (!isDoubleEscaped(messagePattern, j)) {
197-
L--; // DELIM_START was escaped, thus should not be incremented
197+
l--; // DELIM_START was escaped, thus should not be incremented
198198
sbuf.append(messagePattern.substring(i, j - 1));
199199
sbuf.append(DELIM_START);
200200
i = j + 1;
@@ -203,20 +203,20 @@ static FormattingTuple arrayFormat(final String messagePattern,
203203
// itself escaped: "abc x:\\{}"
204204
// we have to consume one backward slash
205205
sbuf.append(messagePattern.substring(i, j - 1));
206-
deeplyAppendParameter(sbuf, argArray[L], new HashMap<Object[], Void>());
206+
deeplyAppendParameter(sbuf, argArray[l], new HashMap<Object[], Void>());
207207
i = j + 2;
208208
}
209209
} else {
210210
// normal case
211211
sbuf.append(messagePattern.substring(i, j));
212-
deeplyAppendParameter(sbuf, argArray[L], new HashMap<Object[], Void>());
212+
deeplyAppendParameter(sbuf, argArray[l], new HashMap<Object[], Void>());
213213
i = j + 2;
214214
}
215215
}
216216
}
217217
// append the characters following the last {} pair.
218218
sbuf.append(messagePattern.substring(i, messagePattern.length()));
219-
if (L < argArray.length - 1) {
219+
if (l < argArray.length - 1) {
220220
return new FormattingTuple(sbuf.toString(), argArray, throwableCandidate);
221221
} else {
222222
return new FormattingTuple(sbuf.toString(), argArray, null);

0 commit comments

Comments
 (0)