Skip to content

Commit bb18512

Browse files
committed
Format change.
1 parent 5298afd commit bb18512

File tree

1 file changed

+7
-2
lines changed
  • dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/codec

1 file changed

+7
-2
lines changed

dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/telnet/codec/TelnetCodec.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@ public class TelnetCodec extends TransportCodec {
4848

4949
private static final byte[] DOWN = new byte[]{27, 91, 66};
5050

51-
private static final List<?> ENTER = Arrays.asList(new Object[]{new byte[]{'\r', '\n'} /* Windows Enter */, new byte[]{'\n'} /* Linux Enter */});
51+
private static final List<?> ENTER = Arrays.asList(
52+
new byte[]{'\r', '\n'} /* Windows Enter */,
53+
new byte[]{'\n'} /* Linux Enter */);
5254

53-
private static final List<?> EXIT = Arrays.asList(new Object[]{new byte[]{3} /* Windows Ctrl+C */, new byte[]{-1, -12, -1, -3, 6} /* Linux Ctrl+C */, new byte[]{-1, -19, -1, -3, 6} /* Linux Pause */});
55+
private static final List<?> EXIT = Arrays.asList(
56+
new byte[]{3} /* Windows Ctrl+C */,
57+
new byte[]{-1, -12, -1, -3, 6} /* Linux Ctrl+C */,
58+
new byte[]{-1, -19, -1, -3, 6} /* Linux Pause */);
5459

5560
private static Charset getCharset(Channel channel) {
5661
if (channel != null) {

0 commit comments

Comments
 (0)