diff --git a/codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java b/codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java index e1f07ac713..67344ca0c1 100644 --- a/codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java +++ b/codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java @@ -230,8 +230,8 @@ public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter int oldInputLength = in.readableBytes(); decode(ctx, in, out); - // Check if this handler was removed before try to continue the loop. - // If it was removed it is not safe to continue to operate on the buffer + // Check if this handler was removed before continuing the loop. + // If it was removed, it is not safe to continue to operate on the buffer. // // See https://github.com/netty/netty/issues/1664 if (ctx.isRemoved()) { diff --git a/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java b/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java index 48f74dff75..aa5ce29687 100644 --- a/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java +++ b/codec/src/main/java/io/netty/handler/codec/ReplayingDecoder.java @@ -359,8 +359,8 @@ public abstract class ReplayingDecoder extends ByteToMessageDecoder { try { decode(ctx, replayable, out); - // Check if this handler was removed before try to continue the loop. - // If it was removed it is not safe to continue to operate on the buffer + // Check if this handler was removed before continuing the loop. + // If it was removed, it is not safe to continue to operate on the buffer. // // See https://github.com/netty/netty/issues/1664 if (ctx.isRemoved()) { @@ -381,8 +381,8 @@ public abstract class ReplayingDecoder extends ByteToMessageDecoder { } catch (Signal replay) { replay.expect(REPLAY); - // Check if this handler was removed before try to continue the loop. - // If it was removed it is not safe to continue to operate on the buffer + // Check if this handler was removed before continuing the loop. + // If it was removed, it is not safe to continue to operate on the buffer. // // See https://github.com/netty/netty/issues/1664 if (ctx.isRemoved()) {