Always use static modifier when adding values to static lists and maps.
This commit is contained in:
@@ -49,7 +49,6 @@ public class LoginCrypt implements ICrypt
|
||||
};
|
||||
|
||||
private static final BlowfishEngine STATIC_BLOWFISH_ENGINE = new BlowfishEngine();
|
||||
|
||||
static
|
||||
{
|
||||
STATIC_BLOWFISH_ENGINE.init(STATIC_BLOWFISH_KEY);
|
||||
|
@@ -69,6 +69,18 @@ public final class TerritoryWarManager implements Siegable
|
||||
private static final String DELETE = "DELETE FROM territory_registrations WHERE castleId = ? and registeredId = ?";
|
||||
private static final String INSERT = "INSERT INTO territory_registrations (castleId, registeredId) values (?, ?)";
|
||||
public static final Map<Integer, Integer> TERRITORY_ITEM_IDS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
TERRITORY_ITEM_IDS.put(81, 13757);
|
||||
TERRITORY_ITEM_IDS.put(82, 13758);
|
||||
TERRITORY_ITEM_IDS.put(83, 13759);
|
||||
TERRITORY_ITEM_IDS.put(84, 13760);
|
||||
TERRITORY_ITEM_IDS.put(85, 13761);
|
||||
TERRITORY_ITEM_IDS.put(86, 13762);
|
||||
TERRITORY_ITEM_IDS.put(87, 13763);
|
||||
TERRITORY_ITEM_IDS.put(88, 13764);
|
||||
TERRITORY_ITEM_IDS.put(89, 13765);
|
||||
}
|
||||
|
||||
public static String qn = "TerritoryWarSuperClass";
|
||||
public static String GLOBAL_VARIABLE = "nextTWStartDate";
|
||||
@@ -100,19 +112,6 @@ public final class TerritoryWarManager implements Siegable
|
||||
protected ScheduledFuture<?> _scheduledEndTWTask = null;
|
||||
protected ScheduledFuture<?> _scheduledRewardOnlineTask = null;
|
||||
|
||||
static
|
||||
{
|
||||
TERRITORY_ITEM_IDS.put(81, 13757);
|
||||
TERRITORY_ITEM_IDS.put(82, 13758);
|
||||
TERRITORY_ITEM_IDS.put(83, 13759);
|
||||
TERRITORY_ITEM_IDS.put(84, 13760);
|
||||
TERRITORY_ITEM_IDS.put(85, 13761);
|
||||
TERRITORY_ITEM_IDS.put(86, 13762);
|
||||
TERRITORY_ITEM_IDS.put(87, 13763);
|
||||
TERRITORY_ITEM_IDS.put(88, 13764);
|
||||
TERRITORY_ITEM_IDS.put(89, 13765);
|
||||
}
|
||||
|
||||
protected TerritoryWarManager()
|
||||
{
|
||||
load();
|
||||
|
@@ -203,7 +203,6 @@ public enum PlayerClass
|
||||
private static final Set<PlayerClass> subclasseSet5 = EnumSet.of(Sorceror, Spellsinger, Spellhowler);
|
||||
|
||||
private static final EnumMap<PlayerClass, Set<PlayerClass>> subclassSetMap = new EnumMap<>(PlayerClass.class);
|
||||
|
||||
static
|
||||
{
|
||||
final Set<PlayerClass> subclasses = getSet(null, THIRD);
|
||||
|
@@ -1,37 +1,38 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.skills;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class MountEnabledSkillList
|
||||
{
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.skills;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class MountEnabledSkillList
|
||||
{
|
||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||
{
|
||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||
}
|
||||
|
||||
public static boolean contains(int skillId)
|
||||
{
|
||||
return ENABLED_SKILLS.contains(skillId);
|
||||
}
|
||||
}
|
||||
static
|
||||
{
|
||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||
}
|
||||
|
||||
public static boolean contains(int skillId)
|
||||
{
|
||||
return ENABLED_SKILLS.contains(skillId);
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,6 @@ public final class ExBasicActionList implements IClientOutgoingPacket
|
||||
};
|
||||
//@formatter:on
|
||||
public static final int[] DEFAULT_ACTION_LIST;
|
||||
|
||||
static
|
||||
{
|
||||
final int count1 = 74; // 0 <-> (count1 - 1)
|
||||
|
Reference in New Issue
Block a user