From 806988e167d7112416c6c17370721c4887033caf Mon Sep 17 00:00:00 2001 From: JKetelaar Date: Sat, 26 Dec 2015 17:43:01 +0100 Subject: [PATCH] [CLEANUP] Added comments to new code --- src/main/java/org/parabot/core/Core.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/parabot/core/Core.java b/src/main/java/org/parabot/core/Core.java index bb39d45..7f22244 100644 --- a/src/main/java/org/parabot/core/Core.java +++ b/src/main/java/org/parabot/core/Core.java @@ -208,6 +208,11 @@ public class Core { return true; } + /** + * Compares the latest version from the BDN and the current version + * + * @return True if the current version is equal or higher than the latest version, false if lower than the latest version + */ public static boolean validVersion() { BufferedReader br = WebUtil.getReader(Configuration.GET_BOT_VERSION); try { @@ -238,6 +243,9 @@ public class Core { return true; } + /** + * Validates the cache and removes the cache contents if required + */ private static void validateCache(){ File[] cache = Directories.getCachePath().listFiles(); Integer lowest = null;