Make 'em final

This commit is contained in:
GJ 2012-07-05 09:33:57 -04:00
parent 62b90ad552
commit b94085c5f4
2 changed files with 6 additions and 6 deletions

View File

@ -11,11 +11,11 @@ public final class SpoutToolsAPI {
private SpoutToolsAPI() {} private SpoutToolsAPI() {}
public static List<ItemStack> spoutSwords = new ArrayList<ItemStack>(); public final static List<ItemStack> spoutSwords = new ArrayList<ItemStack>();
public static List<ItemStack> spoutAxes = new ArrayList<ItemStack>(); public final static List<ItemStack> spoutAxes = new ArrayList<ItemStack>();
public static List<ItemStack> spoutPickaxes = new ArrayList<ItemStack>(); public final static List<ItemStack> spoutPickaxes = new ArrayList<ItemStack>();
public static List<ItemStack> spoutHoes = new ArrayList<ItemStack>(); public final static List<ItemStack> spoutHoes = new ArrayList<ItemStack>();
public static List<ItemStack> spoutShovels = new ArrayList<ItemStack>(); public final static List<ItemStack> spoutShovels = new ArrayList<ItemStack>();
/** /**
* Add a custom Spout tool to mcMMO for XP gain & ability use. * Add a custom Spout tool to mcMMO for XP gain & ability use.

View File

@ -12,7 +12,7 @@ import com.gmail.nossr50.mcMMO;
public class ChunkletUnloader implements Runnable { public class ChunkletUnloader implements Runnable {
private static Map<Chunk, Integer> unloadedChunks = new HashMap<Chunk, Integer>(); private static Map<Chunk, Integer> unloadedChunks = new HashMap<Chunk, Integer>();
private static int minimumInactiveTime = 60; //Should be a multiple of RUN_INTERVAL for best performance private static int minimumInactiveTime = 60; //Should be a multiple of RUN_INTERVAL for best performance
public static int RUN_INTERVAL = 20; public final static int RUN_INTERVAL = 20;
public static void addToList(Chunk chunk) { public static void addToList(Chunk chunk) {
//Unfortunately we can't use Map.contains() because Chunks are always new objects //Unfortunately we can't use Map.contains() because Chunks are always new objects