Moved array designators to the type.
This commit is contained in:
@@ -1283,7 +1283,7 @@ public class Config
|
||||
LEVEL_TO_GET_WEAPON_PENALTY = generalConfig.getInt("LevelToGetWeaponPenalty", 20);
|
||||
INVUL_NPC_LIST = new ArrayList<>();
|
||||
final String t = generalConfig.getString("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999");
|
||||
String as[];
|
||||
String[] as;
|
||||
final int k = (as = t.split(",")).length;
|
||||
for (int j = 0; j < k; j++)
|
||||
{
|
||||
|
@@ -30,7 +30,7 @@ public class HeroCustomItem implements IItemHandler
|
||||
{
|
||||
protected static final Logger LOGGER = Logger.getLogger(HeroCustomItem.class.getName());
|
||||
|
||||
private static final int ITEM_IDS[] =
|
||||
private static final int[] ITEM_IDS =
|
||||
{
|
||||
Config.HERO_CUSTOM_ITEM_ID
|
||||
};
|
||||
|
@@ -35,7 +35,7 @@ public class FakePlayer
|
||||
private String _title;
|
||||
|
||||
private int[] _int; // Player integer stats
|
||||
private boolean _boolean[]; // Player booolean stats
|
||||
private boolean[] _boolean; // Player booolean stats
|
||||
private Npc _npcInstance; // Reference to Npc with this stats
|
||||
private ClassId _classId; // ClassId of this (N)Pc
|
||||
|
||||
@@ -481,7 +481,7 @@ public class FakePlayer
|
||||
|
||||
// Not really necessary but maybe called upon on wrong random settings:
|
||||
// Initiate this Player class id to the correct Player class.
|
||||
final ClassId ids[] = ClassId.values();
|
||||
final ClassId[] ids = ClassId.values();
|
||||
if (ids != null)
|
||||
{
|
||||
for (ClassId id : ids)
|
||||
|
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
public class RaceManager extends Folk
|
||||
{
|
||||
protected static final int TICKET_PRICES[] =
|
||||
protected static final int[] TICKET_PRICES =
|
||||
{
|
||||
100,
|
||||
500,
|
||||
|
@@ -48,7 +48,7 @@ public class KnownListUpdateTaskManager
|
||||
{
|
||||
try
|
||||
{
|
||||
for (WorldRegion regions[] : World.getInstance().getAllWorldRegions())
|
||||
for (WorldRegion[] regions : World.getInstance().getAllWorldRegions())
|
||||
{
|
||||
for (WorldRegion r : regions) // go through all world regions
|
||||
{
|
||||
|
Reference in New Issue
Block a user