Added missing final modifiers.

This commit is contained in:
MobiusDev
2015-12-26 12:03:36 +00:00
parent cc92e5d062
commit e0d681a17e
974 changed files with 5919 additions and 5917 deletions

View File

@@ -110,7 +110,7 @@ public final class AuctionableHall extends ClanHall
*/
private final void initialyzeTask(boolean forced)
{
long currentTime = System.currentTimeMillis();
final long currentTime = System.currentTimeMillis();
if (_paidUntil > currentTime)
{
ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), _paidUntil - currentTime);
@@ -142,7 +142,7 @@ public final class AuctionableHall extends ClanHall
{
try
{
long _time = System.currentTimeMillis();
final long _time = System.currentTimeMillis();
if (isFree())
{
@@ -155,7 +155,7 @@ public final class AuctionableHall extends ClanHall
return;
}
L2Clan Clan = ClanTable.getInstance().getClan(getOwnerId());
final L2Clan Clan = ClanTable.getInstance().getClan(getOwnerId());
if (ClanTable.getInstance().getClan(getOwnerId()).getWarehouse().getAdena() >= getLease())
{
if (_paidUntil != 0)
@@ -193,7 +193,7 @@ public final class AuctionableHall extends ClanHall
else
{
updateDb();
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);
sm.addInt(getLease());
Clan.broadcastToOnlineMembers(sm);
if ((_time + (3600000 * 24)) <= (_paidUntil + _chRate))

View File

@@ -102,7 +102,7 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
while (rset.next())
{
final int id = rset.getInt("attacker_id");
L2SiegeClan clan = new L2SiegeClan(id, SiegeClanType.ATTACKER);
final L2SiegeClan clan = new L2SiegeClan(id, SiegeClanType.ATTACKER);
_attackers.put(id, clan);
}
}
@@ -200,7 +200,7 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
public List<L2Npc> getFlag(L2Clan clan)
{
List<L2Npc> result = null;
L2SiegeClan sClan = getAttackerClan(clan);
final L2SiegeClan sClan = getAttackerClan(clan);
if (sClan != null)
{
result = sClan.getFlag();
@@ -291,7 +291,7 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
_hall.free();
_hall.banishForeigners();
SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.THE_REGISTRATION_TERM_FOR_S1_HAS_ENDED);
final SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.THE_REGISTRATION_TERM_FOR_S1_HAS_ENDED);
msg.addString(getName());
Broadcast.toAllOnlinePlayers(msg);
_hall.updateSiegeStatus(SiegeStatus.WAITING_BATTLE);
@@ -309,7 +309,7 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
_hall.updateNextSiege();
_siegeTask = ThreadPoolManager.getInstance().scheduleGeneral(new PrepareOwner(), _hall.getSiegeDate().getTimeInMillis());
_hall.updateSiegeStatus(SiegeStatus.WAITING_BATTLE);
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_SIEGE_OF_S1_HAS_BEEN_CANCELED_DUE_TO_LACK_OF_INTEREST);
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_SIEGE_OF_S1_HAS_BEEN_CANCELED_DUE_TO_LACK_OF_INTEREST);
sm.addString(_hall.getName());
Broadcast.toAllOnlinePlayers(sm);
return;
@@ -345,11 +345,11 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
@Override
public void endSiege()
{
SystemMessage end = SystemMessage.getSystemMessage(SystemMessageId.THE_S1_SIEGE_HAS_FINISHED);
final SystemMessage end = SystemMessage.getSystemMessage(SystemMessageId.THE_S1_SIEGE_HAS_FINISHED);
end.addString(_hall.getName());
Broadcast.toAllOnlinePlayers(end);
L2Clan winner = getWinner();
final L2Clan winner = getWinner();
SystemMessage finalMsg = null;
if (_missionAccomplished && (winner != null))
{

View File

@@ -62,7 +62,7 @@ public final class SiegableHall extends ClanHall
{
super(set);
_siegeLength = set.getLong("siegeLenght");
String[] rawSchConfig = set.getString("scheduleConfig").split(";");
final String[] rawSchConfig = set.getString("scheduleConfig").split(";");
if (rawSchConfig.length == 5)
{
for (int i = 0; i < 5; i++)
@@ -83,7 +83,7 @@ public final class SiegableHall extends ClanHall
}
_nextSiege = Calendar.getInstance();
long nextSiege = set.getLong("nextSiege");
final long nextSiege = set.getLong("nextSiege");
if ((nextSiege - System.currentTimeMillis()) < 0)
{
updateNextSiege();
@@ -184,7 +184,7 @@ public final class SiegableHall extends ClanHall
public final void updateNextSiege()
{
Calendar c = Calendar.getInstance();
final Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_YEAR, _scheduleConfig[0]);
c.add(Calendar.MONTH, _scheduleConfig[1]);
c.add(Calendar.YEAR, _scheduleConfig[2]);