Used List instead of ArrayList for declarations.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package ai.areas.AteliaFortress.AteliaManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||
@@ -308,7 +309,7 @@ public class AteliaManager extends AbstractNpcAI
|
||||
private static final int SBCANCEL = 3600000; // Time 1 Hour
|
||||
private static final int DDESPAWN = 10800000; // Time 3 Hour
|
||||
|
||||
static ArrayList<Npc> FortessSpawns = new ArrayList<>();
|
||||
static List<Npc> FortessSpawns = new ArrayList<>();
|
||||
|
||||
private AteliaManager()
|
||||
{
|
||||
|
@@ -21,6 +21,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_FOLLOW;
|
||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
@@ -210,7 +211,7 @@ public class ScarletVanHalisha extends AbstractNpcAI
|
||||
|
||||
private Creature getRandomTarget(Npc npc, Skill skill)
|
||||
{
|
||||
final ArrayList<Creature> result = new ArrayList<>();
|
||||
final List<Creature> result = new ArrayList<>();
|
||||
{
|
||||
for (PlayerInstance obj : npc.getInstanceWorld().getPlayers())
|
||||
{
|
||||
|
@@ -106,7 +106,7 @@ public class Kelbim extends AbstractNpcAI
|
||||
private static GrandBossInstance _kelbimBoss;
|
||||
private static long _lastAction;
|
||||
private static int _bossStage;
|
||||
private static ArrayList<Npc> _minions = new ArrayList<>();
|
||||
private static List<Npc> _minions = new ArrayList<>();
|
||||
|
||||
public Kelbim()
|
||||
{
|
||||
|
Reference in New Issue
Block a user