mirror of
https://github.com/CarmJos/EasyPlugin.git
synced 2024-09-19 19:25:45 +00:00
chore(code): 修改方法名避免歧义
This commit is contained in:
parent
a9d26e179c
commit
edab1a822d
@ -24,11 +24,11 @@ public class GHUpdateChecker {
|
||||
public static @NotNull Runnable runner(@NotNull Logger logger,
|
||||
@NotNull String owner, @NotNull String repo,
|
||||
@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) {
|
||||
return of(plugin).runner(plugin.getDescription().getVersion());
|
||||
return of(plugin).createRunner(plugin.getDescription().getVersion());
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user