Removed final modifier from a few method parameters.
This commit is contained in:
parent
4cbed14d21
commit
4029f3e91f
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ public class Inventory
|
||||
|
||||
public ItemInstance findItemByItemId(int itemId)
|
||||
{
|
||||
for (final ItemInstance temp : _items)
|
||||
for (ItemInstance temp : _items)
|
||||
{
|
||||
if (temp.getItemId() != itemId)
|
||||
{
|
||||
@ -426,7 +426,7 @@ public class Inventory
|
||||
|
||||
public ItemInstance getItem(int objectId)
|
||||
{
|
||||
for (final ItemInstance temp : _items)
|
||||
for (ItemInstance temp : _items)
|
||||
{
|
||||
if (temp.getObjectId() != objectId)
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ public class ZoneData
|
||||
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zones classes and total " + size + " zones.");
|
||||
}
|
||||
|
||||
private void loadFileZone(final File f, WorldRegion[][] worldRegions) throws Exception
|
||||
private void loadFileZone(File f, WorldRegion[][] worldRegions) throws Exception
|
||||
{
|
||||
Document doc = null;
|
||||
final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
|
@ -27,13 +27,13 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||
*/
|
||||
public class HqZone extends ZoneType
|
||||
{
|
||||
public HqZone(final int id)
|
||||
public HqZone(int id)
|
||||
{
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEnter(final Creature character)
|
||||
protected void onEnter(Creature character)
|
||||
{
|
||||
if (character instanceof PlayerInstance)
|
||||
{
|
||||
@ -42,7 +42,7 @@ public class HqZone extends ZoneType
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExit(final Creature character)
|
||||
protected void onExit(Creature character)
|
||||
{
|
||||
if (character instanceof PlayerInstance)
|
||||
{
|
||||
@ -51,12 +51,12 @@ public class HqZone extends ZoneType
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDieInside(final Creature character)
|
||||
public void onDieInside(Creature character)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReviveInside(final Creature character)
|
||||
public void onReviveInside(Creature character)
|
||||
{
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||
*/
|
||||
public class NoRestartZone extends ZoneType
|
||||
{
|
||||
public NoRestartZone(final int id)
|
||||
public NoRestartZone(int id)
|
||||
{
|
||||
super(id);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public class ZoneData
|
||||
return;
|
||||
}
|
||||
|
||||
for (final File file : mainDir.listFiles())
|
||||
for (File file : mainDir.listFiles())
|
||||
{
|
||||
if (file.isFile() && file.getName().endsWith(".xml"))
|
||||
{
|
||||
@ -160,7 +160,7 @@ public class ZoneData
|
||||
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zones classes and total " + size + " zones.");
|
||||
}
|
||||
|
||||
private void loadFileZone(final File f, WorldRegion[][] worldRegions) throws Exception
|
||||
private void loadFileZone(File f, WorldRegion[][] worldRegions) throws Exception
|
||||
{
|
||||
Document doc = null;
|
||||
final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
|
@ -72,7 +72,7 @@ public class StoreTradeList
|
||||
public void replaceItem(int itemID, int priceValue)
|
||||
{
|
||||
int price = priceValue;
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getItemId() == itemID)
|
||||
{
|
||||
@ -88,7 +88,7 @@ public class StoreTradeList
|
||||
|
||||
public synchronized boolean decreaseCount(int itemID, int count)
|
||||
{
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getItemId() == itemID)
|
||||
{
|
||||
@ -104,7 +104,7 @@ public class StoreTradeList
|
||||
|
||||
public void restoreCount(int time)
|
||||
{
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getCountDecrease() && (item.getTime() == time))
|
||||
{
|
||||
@ -168,7 +168,7 @@ public class StoreTradeList
|
||||
|
||||
public int getPriceForItemId(int itemId)
|
||||
{
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getItemId() == itemId)
|
||||
{
|
||||
@ -180,7 +180,7 @@ public class StoreTradeList
|
||||
|
||||
public boolean countDecrease(int itemId)
|
||||
{
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getItemId() == itemId)
|
||||
{
|
||||
@ -204,7 +204,7 @@ public class StoreTradeList
|
||||
|
||||
public ItemInstance getItem(int objectId)
|
||||
{
|
||||
for (final ItemInstance item : _items)
|
||||
for (ItemInstance item : _items)
|
||||
{
|
||||
if (item.getObjectId() == objectId)
|
||||
{
|
||||
|
@ -706,7 +706,7 @@ public class Castle
|
||||
return null;
|
||||
}
|
||||
|
||||
for (final DoorInstance door : _doors)
|
||||
for (DoorInstance door : _doors)
|
||||
{
|
||||
if (door.getDoorId() == doorId)
|
||||
{
|
||||
|
@ -27,13 +27,13 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||
*/
|
||||
public class HqZone extends ZoneType
|
||||
{
|
||||
public HqZone(final int id)
|
||||
public HqZone(int id)
|
||||
{
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEnter(final Creature character)
|
||||
protected void onEnter(Creature character)
|
||||
{
|
||||
if (character instanceof PlayerInstance)
|
||||
{
|
||||
@ -42,7 +42,7 @@ public class HqZone extends ZoneType
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExit(final Creature character)
|
||||
protected void onExit(Creature character)
|
||||
{
|
||||
if (character instanceof PlayerInstance)
|
||||
{
|
||||
@ -51,12 +51,12 @@ public class HqZone extends ZoneType
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDieInside(final Creature character)
|
||||
public void onDieInside(Creature character)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onReviveInside(final Creature character)
|
||||
public void onReviveInside(Creature character)
|
||||
{
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||
*/
|
||||
public class NoRestartZone extends ZoneType
|
||||
{
|
||||
public NoRestartZone(final int id)
|
||||
public NoRestartZone(int id)
|
||||
{
|
||||
super(id);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ public final class RelationCache
|
||||
private final int _relation;
|
||||
private final boolean _isAutoAttackable;
|
||||
|
||||
public RelationCache(final int relation, final boolean isAutoAttackable)
|
||||
public RelationCache(int relation, boolean isAutoAttackable)
|
||||
{
|
||||
_relation = relation;
|
||||
_isAutoAttackable = isAutoAttackable;
|
||||
|
@ -24,7 +24,7 @@ public final class RelationCache
|
||||
private final int _relation;
|
||||
private final boolean _isAutoAttackable;
|
||||
|
||||
public RelationCache(final int relation, final boolean isAutoAttackable)
|
||||
public RelationCache(int relation, boolean isAutoAttackable)
|
||||
{
|
||||
_relation = relation;
|
||||
_isAutoAttackable = isAutoAttackable;
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
|
||||
|
||||
// Call friendly npcs for help only if this NPC was attacked by the target creature.
|
||||
boolean targetExistsInAttackByList = false;
|
||||
for (final WeakReference<Creature> reference : npc.getAttackByList())
|
||||
for (WeakReference<Creature> reference : npc.getAttackByList())
|
||||
{
|
||||
if (reference.get() == finalTarget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user