mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
[CLEANUP] Added comments to new code
This commit is contained in:
@@ -208,6 +208,11 @@ public class Core {
|
|||||||
return true;
|
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() {
|
public static boolean validVersion() {
|
||||||
BufferedReader br = WebUtil.getReader(Configuration.GET_BOT_VERSION);
|
BufferedReader br = WebUtil.getReader(Configuration.GET_BOT_VERSION);
|
||||||
try {
|
try {
|
||||||
@@ -238,6 +243,9 @@ public class Core {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates the cache and removes the cache contents if required
|
||||||
|
*/
|
||||||
private static void validateCache(){
|
private static void validateCache(){
|
||||||
File[] cache = Directories.getCachePath().listFiles();
|
File[] cache = Directories.getCachePath().listFiles();
|
||||||
Integer lowest = null;
|
Integer lowest = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user