From f25585abe109d5116d1af6535f99f282b10662aa Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 3 Dec 2018 17:03:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B1=D1=8B=D1=82=D1=8B=D0=B5=20st?= =?UTF-8?q?atic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ru/gravit/launcher/client/FunctionalBridge.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java b/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java index 96b0172d..10aaf6eb 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/FunctionalBridge.java @@ -26,7 +26,7 @@ public class FunctionalBridge { public static OshiHWIDProvider hwidProvider = new OshiHWIDProvider(); @LauncherAPI - public HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedObjectHolder hdir, FileNameMatcher matcher, boolean digest) throws Exception { + public static HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedObjectHolder hdir, FileNameMatcher matcher, boolean digest) throws Exception { return () -> { if (hdir == null) { Request.requestError(java.lang.String.format("Директории '%s' нет в кэше", dirName)); @@ -37,7 +37,7 @@ public HashedDirRunnable offlineUpdateRequest(String dirName, Path dir, SignedOb } @LauncherAPI - public LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException, SignatureException { + public static LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException, SignatureException { if (settings.lastDigest == null || settings.lastProfiles.isEmpty()) { Request.requestError("Запуск в оффлайн-режиме невозможен"); } @@ -51,12 +51,12 @@ public LegacyLauncherRequest.Result offlineLauncherRequest() throws IOException, return new LegacyLauncherRequest.Result(null, settings.lastDigest, settings.lastProfiles); } @LauncherAPI - public void makeJsonRequest(RequestInterface request, Runnable callback) + public static void makeJsonRequest(RequestInterface request, Runnable callback) { } @LauncherAPI - public void startTask(@SuppressWarnings("rawtypes") Task task) + public static void startTask(Task task) { try { worker.queue.put(task);