From 6cebb6069b3f30eedaddb12d2d22a6dd66277047 Mon Sep 17 00:00:00 2001 From: Dmitriy Dumanskiy Date: Fri, 5 Oct 2018 14:06:44 +0300 Subject: [PATCH] remove unnecessary vararg argument in PooledByteBufAllocator (#8338) Motivation: No need in varargs, the method always accepts array. Modification: ... replaced with [] --- .../src/main/java/io/netty/buffer/PooledByteBufAllocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java b/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java index b613fea9e1..aa9ee28b94 100644 --- a/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java +++ b/buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java @@ -580,7 +580,7 @@ public class PooledByteBufAllocator extends AbstractByteBufAllocator implements return usedMemory(directArenas); } - private static long usedMemory(PoolArena... arenas) { + private static long usedMemory(PoolArena[] arenas) { if (arenas == null) { return -1; }