X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FSoneRescuer.java;h=6f8d6c8802533b60e8f4d5ee7d5dc7341cbeaac2;hb=b621439b18b409255cf877d54a5b2b78a43a98d8;hp=ed3d81990e0d2973fb57e7c804b23e2dcd57990e;hpb=6f019de1d4d9742981d851ac3c9097cca8bff58e;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java b/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java index ed3d819..6f8d6c8 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneRescuer.java @@ -17,6 +17,7 @@ package net.pterodactylus.sone.core; +import net.pterodactylus.sone.data.LocalSone; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.util.service.AbstractService; import freenet.keys.FreenetURI; @@ -36,7 +37,7 @@ public class SoneRescuer extends AbstractService { private final SoneDownloader soneDownloader; /** The Sone being rescued. */ - private final Sone sone; + private final LocalSone sone; /** Whether the rescuer is currently fetching a Sone. */ private volatile boolean fetching; @@ -57,7 +58,7 @@ public class SoneRescuer extends AbstractService { * @param sone * The Sone to rescue */ - public SoneRescuer(Core core, SoneDownloader soneDownloader, Sone sone) { + public SoneRescuer(Core core, SoneDownloader soneDownloader, LocalSone sone) { super("Sone Rescuer for " + sone.getName()); this.core = core; this.soneDownloader = soneDownloader; @@ -74,6 +75,7 @@ public class SoneRescuer extends AbstractService { * * @return {@code true} if the Sone rescuer is currently fetching a Sone */ + @SuppressWarnings("unused") // used in rescue.html public boolean isFetching() { return fetching; } @@ -83,6 +85,7 @@ public class SoneRescuer extends AbstractService { * * @return The edition that is currently being downloaded */ + @SuppressWarnings("unused") // used in rescue.html public long getCurrentEdition() { return currentEdition; } @@ -102,6 +105,7 @@ public class SoneRescuer extends AbstractService { * * @return The next edition the Sone rescuer can download */ + @SuppressWarnings("unused") // used in rescue.html public long getNextEdition() { return currentEdition - 1; } @@ -124,6 +128,7 @@ public class SoneRescuer extends AbstractService { * @return {@code true} if the last fetch was successful, {@code false} * otherwise */ + @SuppressWarnings("unused") // used in rescue.html public boolean isLastFetchSuccessful() { return lastFetchSuccessful; }