From b07b00f8abe36cbdc1b7fd58168e36e076df9411 Mon Sep 17 00:00:00 2001 From: mbax Date: Wed, 9 Oct 2013 22:52:07 -0400 Subject: [PATCH] Make constant --- src/net/gravitydevelopment/updater/Updater.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/gravitydevelopment/updater/Updater.java b/src/net/gravitydevelopment/updater/Updater.java index 984d382..8839e77 100644 --- a/src/net/gravitydevelopment/updater/Updater.java +++ b/src/net/gravitydevelopment/updater/Updater.java @@ -60,7 +60,7 @@ public class Updater { private static final String QUERY = "/servermods/files?projectIds="; // Path to GET private static final String HOST = "https://api.curseforge.com"; // Slugs will be appended to this to get to the project's RSS feed - private String[] noUpdateTag = { "-DEV", "-PRE", "-SNAPSHOT" }; // If the version number contains one of these, don't update. + private static final String[] NO_UPDATE_TAG = { "-DEV", "-PRE", "-SNAPSHOT" }; // If the version number contains one of these, don't update. private static final int BYTE_SIZE = 1024; // Used for downloading files private YamlConfiguration config; // Config file private String updateFolder = YamlConfiguration.loadConfiguration(new File("bukkit.yml")).getString("settings.update-folder"); // The folder that downloads will be placed in @@ -441,7 +441,7 @@ private Integer calVer(String s) throws NumberFormatException { * Evaluate whether the version number is marked showing that it should not be updated by this program */ private boolean hasTag(String version) { - for (String string : noUpdateTag) { + for (String string : NO_UPDATE_TAG) { if (version.contains(string)) { return true; }