From 442dd55686c109da716bf63c0b0dfe2849531125 Mon Sep 17 00:00:00 2001 From: slhafzjw Date: Mon, 29 Dec 2025 14:27:00 +0800 Subject: [PATCH] refactor(LocalRunnerClient): rename LocalWatchServiceRegistry --- .../slhaf/partner/core/action/runner/LocalRunnerClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Partner-Main/src/main/java/work/slhaf/partner/core/action/runner/LocalRunnerClient.java b/Partner-Main/src/main/java/work/slhaf/partner/core/action/runner/LocalRunnerClient.java index 81c204e6..e29573d6 100644 --- a/Partner-Main/src/main/java/work/slhaf/partner/core/action/runner/LocalRunnerClient.java +++ b/Partner-Main/src/main/java/work/slhaf/partner/core/action/runner/LocalRunnerClient.java @@ -325,7 +325,7 @@ public class LocalRunnerClient extends RunnerClient { } private WatchServiceBuild registerWatchService(Path path) { - return new LocalWatchServiceHelper(path, watchService, executor); + return new LocalWatchServiceRegistry(path, watchService, executor); } private interface WatchServiceBuild { @@ -350,7 +350,7 @@ public class LocalRunnerClient extends RunnerClient { void load(Path path); } - private static class LocalWatchServiceHelper implements WatchServiceBuild { + private static class LocalWatchServiceRegistry implements WatchServiceBuild { private final Map, WatchEventHandler> handlers = new HashMap<>(); private final Path path; @@ -358,7 +358,7 @@ public class LocalRunnerClient extends RunnerClient { private final ExecutorService executor; private WatchInitLoader initLoader; - private LocalWatchServiceHelper(Path path, WatchService watchService, ExecutorService executor) { + private LocalWatchServiceRegistry(Path path, WatchService watchService, ExecutorService executor) { this.path = path; this.watchService = watchService; this.executor = executor;