From d582f30e6685bf4f1c715d5c62a166e57f90bfdc Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 27 Oct 2024 12:42:12 +0100 Subject: [PATCH] Expose some variables to Updater subclass --- .../eu/m724/jarupdater/{ => updater}/Updater.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename src/main/java/eu/m724/jarupdater/{ => updater}/Updater.java (93%) diff --git a/src/main/java/eu/m724/jarupdater/Updater.java b/src/main/java/eu/m724/jarupdater/updater/Updater.java similarity index 93% rename from src/main/java/eu/m724/jarupdater/Updater.java rename to src/main/java/eu/m724/jarupdater/updater/Updater.java index 8b91e32..462ca3d 100644 --- a/src/main/java/eu/m724/jarupdater/Updater.java +++ b/src/main/java/eu/m724/jarupdater/updater/Updater.java @@ -1,9 +1,8 @@ -package eu.m724.jarupdater; +package eu.m724.jarupdater.updater; import java.io.File; import java.io.IOException; import java.nio.file.NoSuchFileException; -import java.security.SignatureException; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; @@ -14,11 +13,11 @@ import eu.m724.jarupdater.live.MetadataFacade; import eu.m724.jarupdater.object.Version; public class Updater { - private Environment environment; - private MetadataFacade metadataProvider; - private Downloader downloader; + protected Environment environment; + protected MetadataFacade metadataProvider; + protected Downloader downloader; - private CompletableFuture downloaded; + protected CompletableFuture downloaded; public Updater(Environment environment, MetadataFacade metadataProvider, Downloader downloader) { this.environment = environment;