From d029715afcc283acddc9e41a99a6db02f9c4480f Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Sun, 2 Jun 2024 19:30:19 +0800 Subject: [PATCH] =?UTF-8?q?fix/simplify=20internal=20help=20method=20`hopE?= =?UTF-8?q?xecutorIfAtCfDelayerThread`=20=F0=9F=91=81=EF=B8=8F=20?= =?UTF-8?q?=F0=9F=A7=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix wrong visibility modifier, `public` -> `private` - simplify generic type declare, `CompletionStage` -> `CompletableFuture` --- .../main/java/io/foldright/cffu/CompletableFutureUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 fe7d6a6ae..e98ed3293 100644 --- a/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java +++ b/cffu-core/src/main/java/io/foldright/cffu/CompletableFutureUtils.java @@ -1645,8 +1645,7 @@ C completeOnTimeout(C cf, @Nullable T value, long timeout, TimeUnit unit) { } @SuppressWarnings("unchecked") - public static > - C hopExecutorIfAtCfDelayerThread(C cf, Executor asyncExecutor) { + private static > C hopExecutorIfAtCfDelayerThread(C cf, Executor asyncExecutor) { final CompletionStage f = (CompletionStage) cf; return (C) f.handle((v, ex) -> null).thenCompose(unused -> {