Fix compilation errors

This commit is contained in:
Trustin Lee 2012-05-18 17:50:38 +09:00
parent ddb839eaf9
commit 9d3eeb9719
2 changed files with 2 additions and 3 deletions

View File

@ -96,7 +96,7 @@ public class RedisDecoder extends ReplayingDecoder<Reply, VoidEnum> {
}
@Override
public Reply decode(ChannelInboundHandlerContext<Byte> channelHandlerContext, ChannelBuffer channelBuffer, VoidEnum anEnum) throws Exception {
public Reply decode(ChannelInboundHandlerContext<Byte> channelHandlerContext, ChannelBuffer channelBuffer) throws Exception {
if (reply != null) {
reply.read(this, channelBuffer);
Reply ret = reply;

View File

@ -54,8 +54,7 @@ public class ReplayingDecoderTest {
}
@Override
public ChannelBuffer decode(ChannelInboundHandlerContext<Byte> ctx,
ChannelBuffer in, VoidEnum state) throws Exception {
public ChannelBuffer decode(ChannelInboundHandlerContext<Byte> ctx, ChannelBuffer in) {
ChannelBuffer msg = in.readBytes(in.bytesBefore(ChannelBufferIndexFinder.LF));
in.skipBytes(1);
return msg;