remove unnecessary vararg argument in PooledByteBufAllocator (#8338)
Motivation: No need in varargs, the method always accepts array. Modification: ... replaced with []
This commit is contained in:
parent
3a96e7373b
commit
6cebb6069b
@ -580,7 +580,7 @@ public class PooledByteBufAllocator extends AbstractByteBufAllocator implements
|
|||||||
return usedMemory(directArenas);
|
return usedMemory(directArenas);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static long usedMemory(PoolArena<?>... arenas) {
|
private static long usedMemory(PoolArena<?>[] arenas) {
|
||||||
if (arenas == null) {
|
if (arenas == null) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user