Skip to content

Commit

Permalink
Fix array size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Oct 27, 2023
1 parent 7e73a35 commit b39f83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/rabbitmq/stream/impl/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ private static int collectionSize(Collection<String> elements) {
}

private static int arraySize(String... elements) {
return 4 + collectionSize(asList(elements));
return collectionSize(asList(elements));
}

private static int mapSize(Map<String, String> elements) {
Expand Down

0 comments on commit b39f83d

Please sign in to comment.