From 30a8cb78ff7764d1f4205aeef0e011b5b6ed926e Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Thu, 11 Apr 2024 19:40:18 +0800 Subject: [PATCH] fix(`CompletableFutureUtils`): fix element index of exception msg --- .../src/main/java/io/foldright/cffu/CompletableFutureUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java b/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java index 4789bca4..3e489130 100644 --- a/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java +++ b/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java @@ -143,7 +143,7 @@ public static CompletableFuture> allOfFastFailWithResult(Completable private static void requireCfsAndEleNonNull(CompletionStage... cfs) { requireNonNull(cfs, "cfs is null"); for (int i = 0; i < cfs.length; i++) { - requireNonNull(cfs[i], "cf" + i + " is null"); + requireNonNull(cfs[i], "cf" + (i + 1) + " is null"); } }