Fix and clearify javadocs
Motivation: ByteToMessageDecoder and ReplayingDecoder have incorrect javadocs in some places. Modifications: Fix incorrect javadocs for both classes. Result: Correct javadocs for both classes
This commit is contained in:
parent
061d5bc261
commit
d315bbaa14
@ -283,13 +283,12 @@ public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Decode the from one {@link ByteBuf} to an other. This method will be called till either the input
|
* Decode the from one {@link ByteBuf} to an other. This method will be called till either the input
|
||||||
* {@link ByteBuf} has nothing to read anymore, till nothing was read from the input {@link ByteBuf} or till
|
* {@link ByteBuf} has nothing to read when return from this method or till nothing was read from the input
|
||||||
* this method returns {@code null}.
|
* {@link ByteBuf}.
|
||||||
*
|
*
|
||||||
* @param ctx the {@link ChannelHandlerContext} which this {@link ByteToMessageDecoder} belongs to
|
* @param ctx the {@link ChannelHandlerContext} which this {@link ByteToMessageDecoder} belongs to
|
||||||
* @param in the {@link ByteBuf} from which to read data
|
* @param in the {@link ByteBuf} from which to read data
|
||||||
* @param out the {@link List} to which decoded messages should be added
|
* @param out the {@link List} to which decoded messages should be added
|
||||||
|
|
||||||
* @throws Exception is thrown if an error accour
|
* @throws Exception is thrown if an error accour
|
||||||
*/
|
*/
|
||||||
protected abstract void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception;
|
protected abstract void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception;
|
||||||
|
@ -240,7 +240,7 @@ import java.util.List;
|
|||||||
* public class FirstDecoder extends {@link ReplayingDecoder}<{@link Void}> {
|
* public class FirstDecoder extends {@link ReplayingDecoder}<{@link Void}> {
|
||||||
*
|
*
|
||||||
* {@code @Override}
|
* {@code @Override}
|
||||||
* protected Object decode({@link ChannelHandlerContext} ctx,
|
* protected void decode({@link ChannelHandlerContext} ctx,
|
||||||
* {@link ByteBuf} buf, List<Object> out) {
|
* {@link ByteBuf} buf, List<Object> out) {
|
||||||
* ...
|
* ...
|
||||||
* // Decode the first message
|
* // Decode the first message
|
||||||
|
Loading…
Reference in New Issue
Block a user