Fix checkstyle

This commit is contained in:
Norman Maurer 2012-06-10 20:45:38 +02:00
parent ad4f05f5d6
commit ed47feeed8
7 changed files with 9 additions and 17 deletions

View File

@ -143,7 +143,6 @@ public class ChunkedFile implements ChunkedByteInput {
}
int chunkSize = (int) Math.min(this.chunkSize, endOffset - offset);
// Check if the buffer is backed by an byte array. If so we can optimize it a bit an safe a copy
byte[] chunk = new byte[chunkSize];

View File

@ -33,7 +33,6 @@ public interface ChunkedInput<B> {
*/
void close() throws Exception;
/**
* Fetches a chunked data from the stream. The chunk is then
* transfered to the given buffer. Once this method returns the last chunk

View File

@ -20,7 +20,6 @@ import java.util.Queue;
/**
* {@link ChunkedInput} which reads its chunks and transfer it to a {@link Queue}
*
*
*/
public interface ChunkedMessageInput extends ChunkedInput<Queue<Object>> {

View File

@ -100,7 +100,6 @@ public class ChunkedNioStream implements ChunkedByteInput {
if (isEndOfInput()) {
return false;
}
// buffer cannot be not be empty from there
int readBytes = byteBuffer.position();
for (;;) {
@ -110,7 +109,6 @@ public class ChunkedNioStream implements ChunkedByteInput {
}
readBytes += localReadBytes;
offset += localReadBytes;
if (readBytes == chunkSize) {
break;
}

View File

@ -107,7 +107,7 @@ public class ChunkedStream implements ChunkedByteInput {
}
// transfer to buffer
offset =+ buffer.writeBytes(in, chunkSize);
offset += buffer.writeBytes(in, chunkSize);
return true;
}
}

View File

@ -274,13 +274,10 @@ public class ChunkedWriteHandler
return;
}
}
}
/**
* Read the next {@link ChunkedInput} and transfer it the the outbound buffer.
*
* @param ctx the {@link ChannelHandlerContext} this handler is bound to
* @param chunks the {@link ChunkedInput} to read from
* @return read <code>true</code> if something could be transfered to the outbound buffer