📄 Update year in copyright line
[jSite.git] / src / main / java / de / todesbaum / jsite / application / UpdateChecker.java
index 24949a9..eec0bcc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * jSite - UpdateChecker.java - Copyright Â© 2008–2014 David Roden
+ * jSite - UpdateChecker.java - Copyright Â© 2008–2019 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -27,7 +27,6 @@ import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import net.pterodactylus.util.io.Closer;
-import de.todesbaum.jsite.main.Main;
 import de.todesbaum.jsite.main.Version;
 import de.todesbaum.util.freenet.fcp2.Client;
 import de.todesbaum.util.freenet.fcp2.ClientGet;
@@ -51,7 +50,7 @@ public class UpdateChecker implements Runnable {
        private static int counter = 0;
 
        /** The edition for the update check URL. */
-       private static final int UPDATE_EDITION = 7;
+       private static final int UPDATE_EDITION = 12;
 
        /** The URL for update checks. */
        private static final String UPDATE_KEY = "USK@1waTsw46L9-JEQ8yX1khjkfHcn--g0MlMsTlYHax9zQ,oYyxr5jyFnaTsVGDQWk9e3ddOWGKnqEASxAk08MHT2Y,AQACAAE";
@@ -69,7 +68,7 @@ public class UpdateChecker implements Runnable {
        private int lastUpdateEdition = UPDATE_EDITION;
 
        /** Last found version. */
-       private Version lastVersion = Main.getVersion();
+       private Version lastVersion;
 
        /** The freenet interface. */
        private final Freenet7Interface freenetInterface;
@@ -81,8 +80,9 @@ public class UpdateChecker implements Runnable {
         * @param freenetInterface
         *            The freenet interface
         */
-       public UpdateChecker(Freenet7Interface freenetInterface) {
+       public UpdateChecker(Freenet7Interface freenetInterface, Version currentVersion) {
                this.freenetInterface = freenetInterface;
+               this.lastVersion = currentVersion;
        }
 
        //