Proper modifier order and removal if implied by their context.
This commit is contained in:
@@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@@ -173,7 +173,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
*/
|
||||
public class Q00350_EnhanceYourWeapon extends Quest
|
||||
{
|
||||
private static enum AbsorbCrystalType
|
||||
private enum AbsorbCrystalType
|
||||
{
|
||||
LAST_HIT,
|
||||
FULL_PARTY,
|
||||
|
@@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@@ -196,7 +196,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@@ -206,7 +206,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@@ -50,7 +50,7 @@ public class RaidBossSpawnManager
|
||||
protected static final Map<Integer, StatsSet> _storedInfo = new ConcurrentHashMap<>();
|
||||
protected static final Map<Integer, ScheduledFuture<?>> _schedules = new ConcurrentHashMap<>();
|
||||
|
||||
public static enum StatusEnum
|
||||
public enum StatusEnum
|
||||
{
|
||||
ALIVE,
|
||||
DEAD,
|
||||
|
@@ -84,7 +84,7 @@ public final class Elementals
|
||||
// TODO: Higher stones
|
||||
};
|
||||
|
||||
public static enum ElementalItemType
|
||||
public enum ElementalItemType
|
||||
{
|
||||
Stone(3),
|
||||
Roughore(3),
|
||||
@@ -100,7 +100,7 @@ public final class Elementals
|
||||
}
|
||||
}
|
||||
|
||||
public static enum ElementalItems
|
||||
public enum ElementalItems
|
||||
{
|
||||
fireStone(FIRE, 9546, ElementalItemType.Stone),
|
||||
waterStone(WATER, 9547, ElementalItemType.Stone),
|
||||
|
@@ -914,7 +914,7 @@ public final class L2PcInstance extends L2Playable
|
||||
private boolean _marryaccepted = false;
|
||||
|
||||
// Item Mall
|
||||
private final static String GAME_POINTS_VAR = "PRIME_POINTS"; // Keep compatibility with later clients.
|
||||
private static final String GAME_POINTS_VAR = "PRIME_POINTS"; // Keep compatibility with later clients.
|
||||
|
||||
// Save responder name for log it
|
||||
private String _lastPetitionGmName = null;
|
||||
|
@@ -87,7 +87,7 @@ public final class OlympiadGameTask implements Runnable
|
||||
private boolean _needAnnounce = false;
|
||||
private int _countDown = 0;
|
||||
|
||||
private static enum GameState
|
||||
private enum GameState
|
||||
{
|
||||
BEGIN,
|
||||
TELEPORT_TO_ARENA,
|
||||
|
@@ -30,7 +30,7 @@ public interface IClientOutgoingPacket extends IOutgoingPacket
|
||||
{
|
||||
Logger LOGGER = Logger.getLogger(IClientOutgoingPacket.class.getName());
|
||||
|
||||
static final int[] PAPERDOLL_ORDER = new int[]
|
||||
int[] PAPERDOLL_ORDER = new int[]
|
||||
{
|
||||
Inventory.PAPERDOLL_UNDER,
|
||||
Inventory.PAPERDOLL_REAR,
|
||||
|
@@ -44,7 +44,7 @@ public class SortedWareHouseWithdrawalList implements IClientOutgoingPacket
|
||||
private List<L2WarehouseItem> _objects = new ArrayList<>();
|
||||
private int _whType;
|
||||
|
||||
public static enum WarehouseListType
|
||||
public enum WarehouseListType
|
||||
{
|
||||
WEAPON,
|
||||
ARMOR,
|
||||
|
@@ -62,22 +62,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@@ -61,12 +61,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
Reference in New Issue
Block a user