Used List instead of ArrayList for declarations.
This commit is contained in:
@@ -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;
|
||||
@@ -212,7 +213,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 (WorldObject obj : npc.getInstanceWorld().getPlayers())
|
||||
{
|
||||
|
Reference in New Issue
Block a user