From e023e9de91f20396e20ad2a1c059a1c113d8dd42 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 10 Jun 2011 18:45:11 -0500 Subject: [PATCH] a few minor speed enhancements --- src/org/mcteam/factions/Conf.java | 10 +++++----- src/org/mcteam/factions/util/TextUtil.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/org/mcteam/factions/Conf.java b/src/org/mcteam/factions/Conf.java index ba0965a7..494a40bb 100644 --- a/src/org/mcteam/factions/Conf.java +++ b/src/org/mcteam/factions/Conf.java @@ -90,12 +90,12 @@ public class Conf { public static boolean wildernessBlockTNT = false; public static boolean wildernessPowerLoss = true; - public static Set territoryProtectedMaterials = new HashSet(); - public static Set territoryDenyUseageMaterials = new HashSet(); - public static Set territoryProtectedMaterialsWhenOffline = new HashSet(); - public static Set territoryDenyUseageMaterialsWhenOffline = new HashSet(); + public static Set territoryProtectedMaterials = EnumSet.noneOf(Material.class); + public static Set territoryDenyUseageMaterials = EnumSet.noneOf(Material.class); + public static Set territoryProtectedMaterialsWhenOffline = EnumSet.noneOf(Material.class); + public static Set territoryDenyUseageMaterialsWhenOffline = EnumSet.noneOf(Material.class); - public static transient Set safeZoneNerfedCreatureTypes = new HashSet(); + public static transient Set safeZoneNerfedCreatureTypes = EnumSet.noneOf(CreatureType.class); public static Set worldsNoClaiming = new HashSet(); public static Set worldsNoPowerLoss = new HashSet(); diff --git a/src/org/mcteam/factions/util/TextUtil.java b/src/org/mcteam/factions/util/TextUtil.java index 0f8885e6..20c60ee5 100644 --- a/src/org/mcteam/factions/util/TextUtil.java +++ b/src/org/mcteam/factions/util/TextUtil.java @@ -60,7 +60,7 @@ public class TextUtil { } /// TODO create tag whitelist!! - public static ArrayList substanceChars = new ArrayList(Arrays.asList(new String []{ + public static HashSet substanceChars = new HashSet(Arrays.asList(new String []{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r",