From: David ‘Bombe’ Roden Date: Fri, 26 Feb 2016 23:44:59 +0000 (+0100) Subject: Declare update checker to be a singleton X-Git-Tag: 0.9.5^2~43^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=92ea5984519562a8f3bee878da6fb130a376d97c;p=Sone.git Declare update checker to be a singleton --- diff --git a/src/main/java/net/pterodactylus/sone/core/UpdateChecker.java b/src/main/java/net/pterodactylus/sone/core/UpdateChecker.java index 146383a..07398ec 100644 --- a/src/main/java/net/pterodactylus/sone/core/UpdateChecker.java +++ b/src/main/java/net/pterodactylus/sone/core/UpdateChecker.java @@ -28,6 +28,8 @@ import java.util.Properties; import java.util.logging.Level; import java.util.logging.Logger; +import javax.inject.Singleton; + import net.pterodactylus.sone.core.FreenetInterface.Fetched; import net.pterodactylus.sone.core.event.UpdateFoundEvent; import net.pterodactylus.sone.main.SonePlugin; @@ -45,6 +47,7 @@ import freenet.support.api.Bucket; * * @author David ‘Bombe’ Roden */ +@Singleton public class UpdateChecker { /** The logger. */