Skip to content

Commit

Permalink
remove unnecessary vararg argument in PooledByteBufAllocator (netty#8338
Browse files Browse the repository at this point in the history
)

Motivation:

No need in varargs, the method always accepts array.

Modification:

... replaced with []
  • Loading branch information
doom369 authored and normanmaurer committed Oct 5, 2018
1 parent 3a96e73 commit 6cebb60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ final long usedDirectMemory() {
return usedMemory(directArenas);
}

private static long usedMemory(PoolArena<?>... arenas) {
private static long usedMemory(PoolArena<?>[] arenas) {
if (arenas == null) {
return -1;
}
Expand Down

0 comments on commit 6cebb60

Please sign in to comment.