We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fe5c7 commit 2c9e1d3Copy full SHA for 2c9e1d3
graphql-java-kickstart/src/main/java/graphql/kickstart/execution/GraphQLInvoker.java
@@ -51,7 +51,7 @@ private CompletableFuture<List<ExecutionResult>> executeAsync(GraphQLBatchedInvo
51
private <T> CompletableFuture<List<T>> sequence(List<CompletableFuture<T>> futures) {
52
CompletableFuture[] futuresArray = futures.toArray(new CompletableFuture[0]);
53
return CompletableFuture.allOf(futuresArray).thenApply(aVoid -> {
54
- List<T> result = new ArrayList<>();
+ List<T> result = new ArrayList<>(futures.size());
55
for (CompletableFuture future : futuresArray) {
56
assert future.isDone(); // per the API contract of allOf()
57
result.add((T) future.join());
0 commit comments