From 329dae1ec5aa26908f14cdd067b6f4f744b1132c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=BF=AA?= Date: Fri, 19 Feb 2021 15:07:23 +0800 Subject: [PATCH] Fix incorrect comment in code (#11029) Motivation: Comment on method is outdated / incorrect. Modification: Adjust comment Result: Correct docs --- buffer/src/main/java/io/netty/buffer/PoolThreadCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java b/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java index 98017e4d3f..c5abcaa88a 100644 --- a/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java +++ b/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java @@ -152,7 +152,7 @@ final class PoolThreadCache { } /** - * Try to allocate a small buffer out of the cache. Returns {@code true} if successful {@code false} otherwise + * Try to allocate a normal buffer out of the cache. Returns {@code true} if successful {@code false} otherwise */ boolean allocateNormal(PoolArena area, PooledByteBuf buf, int reqCapacity, int sizeIdx) { return allocate(cacheForNormal(area, sizeIdx), buf, reqCapacity);