Fix a build failure due to a dependency problem / Fix checkstyle errors

This commit is contained in:
Trustin Lee 2012-06-07 09:15:53 +09:00
parent 4831eb49da
commit b1a156d3f2
6 changed files with 7 additions and 8 deletions

View File

@ -43,7 +43,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>netty-codec</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -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));

View File

@ -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();

View File

@ -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() { }
}

View File

@ -25,7 +25,7 @@ public class TimeoutException extends ChannelException {
private static final long serialVersionUID = 4673641882869672533L;
TimeoutException() {}
TimeoutException() { }
@Override
public Throwable fillInStackTrace() {

View File

@ -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() { }
}