From 0537170ab530017a54f5ef4bbbc67177c4314f5f Mon Sep 17 00:00:00 2001 From: terrarier2111 <58695553+terrarier2111@users.noreply.github.com> Date: Thu, 10 Dec 2020 10:31:15 +0100 Subject: [PATCH] Fixed a comment in UnpooledDirectByteBuf (#10854) Motivation: Found an invalid comment in UnpooledDirectByteBuf. Modification: Fixed a comment in UnpooledDirectByteBuf. Result: Fixed a comment in UnpooledDirectByteBuf. --- .../java/io/netty/buffer/UnpooledUnsafeDirectByteBuf.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buffer/src/main/java/io/netty/buffer/UnpooledUnsafeDirectByteBuf.java b/buffer/src/main/java/io/netty/buffer/UnpooledUnsafeDirectByteBuf.java index b2c2819c7d..6d1e326dc0 100644 --- a/buffer/src/main/java/io/netty/buffer/UnpooledUnsafeDirectByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/UnpooledUnsafeDirectByteBuf.java @@ -47,9 +47,9 @@ public class UnpooledUnsafeDirectByteBuf extends UnpooledDirectByteBuf { * @param maxCapacity the maximum capacity of the underlying direct buffer */ protected UnpooledUnsafeDirectByteBuf(ByteBufAllocator alloc, ByteBuffer initialBuffer, int maxCapacity) { - // We never try to free the buffer if it was provided by the end-user as we not know if this is an duplicate or - // an slice. This is done to prevent an IllegalArgumentException when using Java9 as Unsafe.invokeCleaner(...) - // will check if the given buffer is either an duplicate or slice and in this case throw an + // We never try to free the buffer if it was provided by the end-user as we don't know if this is a duplicate or + // a slice. This is done to prevent an IllegalArgumentException when using Java9 as Unsafe.invokeCleaner(...) + // will check if the given buffer is either a duplicate or slice and in this case throw an // IllegalArgumentException. // // See https://hg.openjdk.java.net/jdk9/hs-demo/jdk/file/0d2ab72ba600/src/jdk.unsupported/share/classes/