1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2026-06-04 16:48:16 +08:00

chore(code): 修改方法名避免歧义

This commit is contained in:
2023-02-19 03:36:25 +08:00
parent a9d26e179c
commit edab1a822d
@@ -24,11 +24,11 @@ public class GHUpdateChecker {
public static @NotNull Runnable runner(@NotNull Logger logger, public static @NotNull Runnable runner(@NotNull Logger logger,
@NotNull String owner, @NotNull String repo, @NotNull String owner, @NotNull String repo,
@NotNull String currentVersion) { @NotNull String currentVersion) {
return of(logger, owner, repo).runner(currentVersion); return of(logger, owner, repo).createRunner(currentVersion);
} }
public static @NotNull Runnable runner(@NotNull Plugin plugin) { public static @NotNull Runnable runner(@NotNull Plugin plugin) {
return of(plugin).runner(plugin.getDescription().getVersion()); return of(plugin).createRunner(plugin.getDescription().getVersion());
} }
protected final @NotNull Logger logger; protected final @NotNull Logger logger;
@@ -59,7 +59,7 @@ public class GHUpdateChecker {
} }
} }
public Runnable runner(@NotNull String currentVersion) { public Runnable createRunner(@NotNull String currentVersion) {
return () -> checkUpdate(currentVersion); return () -> checkUpdate(currentVersion);
} }