Fix an inspector warning in JsonObjectDecoder

This commit is contained in:
Trustin Lee 2014-07-03 20:01:23 +09:00
parent d0b355b26e
commit a1974ef35b

View File

@ -170,6 +170,7 @@ public class JsonObjectDecoder extends ByteToMessageDecoder {
/**
* Override this method if you want to filter the json objects/arrays that get passed through the pipeline.
*/
@SuppressWarnings("UnusedParameters")
protected ByteBuf extractObject(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) {
return buffer.slice(index, length).retain();
}