Забытые static

This commit is contained in:
Gravit 2018-12-03 17:03:54 +07:00
parent eedd70061f
commit f25585abe1
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -26,7 +26,7 @@ public class FunctionalBridge {
public static OshiHWIDProvider hwidProvider = new OshiHWIDProvider(); public static OshiHWIDProvider hwidProvider = new OshiHWIDProvider();
@LauncherAPI @LauncherAPI
public HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedObjectHolder<HashedDir> hdir, FileNameMatcher matcher, boolean digest) throws Exception { public static HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedObjectHolder<HashedDir> hdir, FileNameMatcher matcher, boolean digest) throws Exception {
return () -> { return () -> {
if (hdir == null) { if (hdir == null) {
Request.requestError(java.lang.String.format("Директории '%s' нет в кэше", dirName)); Request.requestError(java.lang.String.format("Директории '%s' нет в кэше", dirName));
@ -37,7 +37,7 @@ public HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedOb
} }
@LauncherAPI @LauncherAPI
public LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException, SignatureException { public static LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException, SignatureException {
if (settings.lastDigest == null || settings.lastProfiles.isEmpty()) { if (settings.lastDigest == null || settings.lastProfiles.isEmpty()) {
Request.requestError("Запуск в оффлайн-режиме невозможен"); Request.requestError("Запуск в оффлайн-режиме невозможен");
} }
@ -51,12 +51,12 @@ public LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException,
return new LegacyLauncherRequest.Result(null, settings.lastDigest, settings.lastProfiles); return new LegacyLauncherRequest.Result(null, settings.lastDigest, settings.lastProfiles);
} }
@LauncherAPI @LauncherAPI
public void makeJsonRequest(RequestInterface request, Runnable callback) public static void makeJsonRequest(RequestInterface request, Runnable callback)
{ {
} }
@LauncherAPI @LauncherAPI
public void startTask(@SuppressWarnings("rawtypes") Task task) public static void startTask(Task task)
{ {
try { try {
worker.queue.put(task); worker.queue.put(task);