Used List instead of ArrayList for declarations.
This commit is contained in:
@@ -261,7 +261,7 @@ public class RainbowSpringsChateau extends ClanHallSiegeEngine
|
||||
|
||||
protected static Map<Integer, Long> _warDecreesCount = new HashMap<>();
|
||||
protected static List<Clan> _acceptedClans = new ArrayList<>(4);
|
||||
private static Map<String, ArrayList<Clan>> _usedTextPassages = new HashMap<>();
|
||||
private static Map<String, List<Clan>> _usedTextPassages = new HashMap<>();
|
||||
private static Map<Clan, Integer> _pendingItemToGet = new HashMap<>();
|
||||
|
||||
protected static SiegableHall _rainbow;
|
||||
@@ -545,7 +545,7 @@ public class RainbowSpringsChateau extends ClanHallSiegeEngine
|
||||
|
||||
if (_usedTextPassages.containsKey(passage))
|
||||
{
|
||||
final ArrayList<Clan> list = _usedTextPassages.get(passage);
|
||||
final List<Clan> list = _usedTextPassages.get(passage);
|
||||
if (list.contains(clan))
|
||||
{
|
||||
html = "yeti_passage_used.htm";
|
||||
|
||||
@@ -781,7 +781,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection())
|
||||
{
|
||||
final ArrayList<Integer> listInstance = _data.get(clanId).players;
|
||||
final List<Integer> listInstance = _data.get(clanId).players;
|
||||
if (listInstance == null)
|
||||
{
|
||||
LOGGER.warning(getName() + ": Tried to load unregistered clan with ID " + clanId);
|
||||
@@ -880,8 +880,8 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
{
|
||||
int flag = 0;
|
||||
int npc = 0;
|
||||
ArrayList<Integer> players = new ArrayList<>(18);
|
||||
ArrayList<PlayerInstance> playersInstance = new ArrayList<>(18);
|
||||
List<Integer> players = new ArrayList<>(18);
|
||||
List<PlayerInstance> playersInstance = new ArrayList<>(18);
|
||||
Spawn warrior = null;
|
||||
Spawn flagInstance = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user