Removed final modifier from a few method parameters.

This commit is contained in:
MobiusDevelopment
2020-07-24 04:30:42 +00:00
parent 4cbed14d21
commit 4029f3e91f
26 changed files with 41 additions and 41 deletions

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -91,7 +91,7 @@ public class Inventory
public ItemInstance findItemByItemId(int itemId) public ItemInstance findItemByItemId(int itemId)
{ {
for (final ItemInstance temp : _items) for (ItemInstance temp : _items)
{ {
if (temp.getItemId() != itemId) if (temp.getItemId() != itemId)
{ {
@@ -426,7 +426,7 @@ public class Inventory
public ItemInstance getItem(int objectId) public ItemInstance getItem(int objectId)
{ {
for (final ItemInstance temp : _items) for (ItemInstance temp : _items)
{ {
if (temp.getObjectId() != objectId) if (temp.getObjectId() != objectId)
{ {

View File

@@ -160,7 +160,7 @@ public class ZoneData
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zones classes and total " + size + " zones."); 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; Document doc = null;
final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

View File

@@ -27,13 +27,13 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
*/ */
public class HqZone extends ZoneType public class HqZone extends ZoneType
{ {
public HqZone(final int id) public HqZone(int id)
{ {
super(id); super(id);
} }
@Override @Override
protected void onEnter(final Creature character) protected void onEnter(Creature character)
{ {
if (character instanceof PlayerInstance) if (character instanceof PlayerInstance)
{ {
@@ -42,7 +42,7 @@ public class HqZone extends ZoneType
} }
@Override @Override
protected void onExit(final Creature character) protected void onExit(Creature character)
{ {
if (character instanceof PlayerInstance) if (character instanceof PlayerInstance)
{ {
@@ -51,12 +51,12 @@ public class HqZone extends ZoneType
} }
@Override @Override
public void onDieInside(final Creature character) public void onDieInside(Creature character)
{ {
} }
@Override @Override
public void onReviveInside(final Creature character) public void onReviveInside(Creature character)
{ {
} }
} }

View File

@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
*/ */
public class NoRestartZone extends ZoneType public class NoRestartZone extends ZoneType
{ {
public NoRestartZone(final int id) public NoRestartZone(int id)
{ {
super(id); super(id);
} }

View File

@@ -136,7 +136,7 @@ public class ZoneData
return; return;
} }
for (final File file : mainDir.listFiles()) for (File file : mainDir.listFiles())
{ {
if (file.isFile() && file.getName().endsWith(".xml")) 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."); 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; Document doc = null;
final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

View File

@@ -72,7 +72,7 @@ public class StoreTradeList
public void replaceItem(int itemID, int priceValue) public void replaceItem(int itemID, int priceValue)
{ {
int price = priceValue; int price = priceValue;
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getItemId() == itemID) if (item.getItemId() == itemID)
{ {
@@ -88,7 +88,7 @@ public class StoreTradeList
public synchronized boolean decreaseCount(int itemID, int count) public synchronized boolean decreaseCount(int itemID, int count)
{ {
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getItemId() == itemID) if (item.getItemId() == itemID)
{ {
@@ -104,7 +104,7 @@ public class StoreTradeList
public void restoreCount(int time) public void restoreCount(int time)
{ {
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getCountDecrease() && (item.getTime() == time)) if (item.getCountDecrease() && (item.getTime() == time))
{ {
@@ -168,7 +168,7 @@ public class StoreTradeList
public int getPriceForItemId(int itemId) public int getPriceForItemId(int itemId)
{ {
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getItemId() == itemId) if (item.getItemId() == itemId)
{ {
@@ -180,7 +180,7 @@ public class StoreTradeList
public boolean countDecrease(int itemId) public boolean countDecrease(int itemId)
{ {
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getItemId() == itemId) if (item.getItemId() == itemId)
{ {
@@ -204,7 +204,7 @@ public class StoreTradeList
public ItemInstance getItem(int objectId) public ItemInstance getItem(int objectId)
{ {
for (final ItemInstance item : _items) for (ItemInstance item : _items)
{ {
if (item.getObjectId() == objectId) if (item.getObjectId() == objectId)
{ {

View File

@@ -706,7 +706,7 @@ public class Castle
return null; return null;
} }
for (final DoorInstance door : _doors) for (DoorInstance door : _doors)
{ {
if (door.getDoorId() == doorId) if (door.getDoorId() == doorId)
{ {

View File

@@ -27,13 +27,13 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
*/ */
public class HqZone extends ZoneType public class HqZone extends ZoneType
{ {
public HqZone(final int id) public HqZone(int id)
{ {
super(id); super(id);
} }
@Override @Override
protected void onEnter(final Creature character) protected void onEnter(Creature character)
{ {
if (character instanceof PlayerInstance) if (character instanceof PlayerInstance)
{ {
@@ -42,7 +42,7 @@ public class HqZone extends ZoneType
} }
@Override @Override
protected void onExit(final Creature character) protected void onExit(Creature character)
{ {
if (character instanceof PlayerInstance) if (character instanceof PlayerInstance)
{ {
@@ -51,12 +51,12 @@ public class HqZone extends ZoneType
} }
@Override @Override
public void onDieInside(final Creature character) public void onDieInside(Creature character)
{ {
} }
@Override @Override
public void onReviveInside(final Creature character) public void onReviveInside(Creature character)
{ {
} }
} }

View File

@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
*/ */
public class NoRestartZone extends ZoneType public class NoRestartZone extends ZoneType
{ {
public NoRestartZone(final int id) public NoRestartZone(int id)
{ {
super(id); super(id);
} }

View File

@@ -24,7 +24,7 @@ public final class RelationCache
private final int _relation; private final int _relation;
private final boolean _isAutoAttackable; private final boolean _isAutoAttackable;
public RelationCache(final int relation, final boolean isAutoAttackable) public RelationCache(int relation, boolean isAutoAttackable)
{ {
_relation = relation; _relation = relation;
_isAutoAttackable = isAutoAttackable; _isAutoAttackable = isAutoAttackable;

View File

@@ -24,7 +24,7 @@ public final class RelationCache
private final int _relation; private final int _relation;
private final boolean _isAutoAttackable; private final boolean _isAutoAttackable;
public RelationCache(final int relation, final boolean isAutoAttackable) public RelationCache(int relation, boolean isAutoAttackable)
{ {
_relation = relation; _relation = relation;
_isAutoAttackable = isAutoAttackable; _isAutoAttackable = isAutoAttackable;

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {

View File

@@ -700,7 +700,7 @@ public class AttackableAI extends CreatureAI
// Call friendly npcs for help only if this NPC was attacked by the target creature. // Call friendly npcs for help only if this NPC was attacked by the target creature.
boolean targetExistsInAttackByList = false; boolean targetExistsInAttackByList = false;
for (final WeakReference<Creature> reference : npc.getAttackByList()) for (WeakReference<Creature> reference : npc.getAttackByList())
{ {
if (reference.get() == finalTarget) if (reference.get() == finalTarget)
{ {