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

@@ -91,7 +91,7 @@ public final class ItemAuction
_itemInfo = new ItemInfo(item);
L2World.getInstance().removeObject(item);
for (final ItemAuctionBid bid : _auctionBids)
for (ItemAuctionBid bid : _auctionBids)
{
if ((_highestBid == null) || (_highestBid.getLastBid() < bid.getLastBid()))
{
@@ -206,7 +206,7 @@ public final class ItemAuction
ps.setByte(7, _auctionState.getStateId());
ps.execute();
}
catch (final SQLException e)
catch (SQLException e)
{
_log.log(Level.WARNING, "", e);
}
@@ -320,7 +320,7 @@ public final class ItemAuction
onPlayerBid(player, bid);
updatePlayerBid(bid, false);
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUBMITTED_A_BID_FOR_THE_AUCTION_OF_S1);
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUBMITTED_A_BID_FOR_THE_AUCTION_OF_S1);
sm.addLong(newBid);
player.sendPacket(sm);
return;

View File

@@ -126,7 +126,7 @@ public final class ItemAuctionInstance
throw new IllegalArgumentException("Item with id " + itemId + " not found");
}
for (final AuctionItem tmp : _items)
for (AuctionItem tmp : _items)
{
if (tmp.getAuctionItemId() == auctionItemId)
{
@@ -153,7 +153,7 @@ public final class ItemAuctionInstance
}
}
}
catch (final IllegalArgumentException e)
catch (IllegalArgumentException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Failed loading auction item", e);
}
@@ -185,14 +185,14 @@ public final class ItemAuctionInstance
ItemAuctionManager.deleteAuction(auctionId);
}
}
catch (final SQLException e)
catch (SQLException e)
{
_log.log(Level.WARNING, getClass().getSimpleName() + ": Failed loading auction: " + auctionId, e);
}
}
}
}
catch (final SQLException e)
catch (SQLException e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed loading auctions.", e);
return;
@@ -294,7 +294,7 @@ public final class ItemAuctionInstance
// just to make sure we won't skip any auction because of little different times
final long currentTime = System.currentTimeMillis();
for (final ItemAuction auction : auctions)
for (ItemAuction auction : auctions)
{
if (auction.getAuctionState() == ItemAuctionState.STARTED)
{
@@ -308,7 +308,7 @@ public final class ItemAuctionInstance
}
}
for (final ItemAuction auction : auctions)
for (ItemAuction auction : auctions)
{
if ((auction.getStartingTime() > currentTime) && (currentAuction != auction))
{
@@ -358,7 +358,7 @@ public final class ItemAuctionInstance
{
final Collection<ItemAuction> auctions = getAuctions();
final ArrayList<ItemAuction> stack = new ArrayList<>(auctions.size());
for (final ItemAuction auction : getAuctions())
for (ItemAuction auction : getAuctions())
{
if (auction.getAuctionState() != ItemAuctionState.CREATED)
{
@@ -400,7 +400,7 @@ public final class ItemAuctionInstance
{
runImpl();
}
catch (final Exception e)
catch (Exception e)
{
_log.log(Level.SEVERE, getClass().getSimpleName() + ": Failed scheduling auction " + _auction.getAuctionId(), e);
}

View File

@@ -41,7 +41,7 @@ public enum ItemAuctionState
public static final ItemAuctionState stateForStateId(final byte stateId)
{
for (final ItemAuctionState state : ItemAuctionState.values())
for (ItemAuctionState state : ItemAuctionState.values())
{
if (state.getStateId() == stateId)
{