Fix a build failure due to a dependency problem / Fix checkstyle errors
This commit is contained in:
parent
4831eb49da
commit
b1a156d3f2
@ -43,7 +43,6 @@
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>netty-codec</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class LoggingHandler extends ChannelHandlerAdapter<Object, Object> {
|
||||
buf.append(i);
|
||||
BYTE2HEX[i] = buf.toString();
|
||||
}
|
||||
for (;i < 16; i ++) {
|
||||
for (; i < 16; i ++) {
|
||||
StringBuilder buf = new StringBuilder(3);
|
||||
buf.append(" 0");
|
||||
buf.append((char) ('a' + i - 10));
|
||||
|
@ -466,7 +466,7 @@ public class SslHandler extends StreamToStreamCodec {
|
||||
try {
|
||||
ByteBuffer outAppBuf = in.nioBuffer();
|
||||
|
||||
while(in.readable()) {
|
||||
while (in.readable()) {
|
||||
|
||||
int read;
|
||||
int remaining = outAppBuf.remaining();
|
||||
|
@ -19,11 +19,11 @@ package io.netty.handler.timeout;
|
||||
* A {@link TimeoutException} raised by {@link ReadTimeoutHandler} when no data
|
||||
* was read within a certain period of time.
|
||||
*/
|
||||
public class ReadTimeoutException extends TimeoutException {
|
||||
public final class ReadTimeoutException extends TimeoutException {
|
||||
|
||||
private static final long serialVersionUID = 169287984113283421L;
|
||||
|
||||
public static final ReadTimeoutException INSTANCE = new ReadTimeoutException();
|
||||
|
||||
private ReadTimeoutException() {}
|
||||
private ReadTimeoutException() { }
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ public class TimeoutException extends ChannelException {
|
||||
|
||||
private static final long serialVersionUID = 4673641882869672533L;
|
||||
|
||||
TimeoutException() {}
|
||||
TimeoutException() { }
|
||||
|
||||
@Override
|
||||
public Throwable fillInStackTrace() {
|
||||
|
@ -19,11 +19,11 @@ package io.netty.handler.timeout;
|
||||
* A {@link TimeoutException} raised by {@link WriteTimeoutHandler} when no data
|
||||
* was written within a certain period of time.
|
||||
*/
|
||||
public class WriteTimeoutException extends TimeoutException {
|
||||
public final class WriteTimeoutException extends TimeoutException {
|
||||
|
||||
private static final long serialVersionUID = -144786655770296065L;
|
||||
|
||||
public static final WriteTimeoutException INSTANCE = new WriteTimeoutException();
|
||||
|
||||
private WriteTimeoutException() {}
|
||||
private WriteTimeoutException() { }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user