Various unnecessary code changes.
This commit is contained in:
@@ -37,10 +37,10 @@ import com.l2jmobius.Config;
|
||||
*/
|
||||
public final class ThreadPool
|
||||
{
|
||||
protected static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName());
|
||||
|
||||
protected static ScheduledThreadPoolExecutor[] SCHEDULED_POOLS;
|
||||
protected static ThreadPoolExecutor[] INSTANT_POOLS;
|
||||
private static ScheduledThreadPoolExecutor[] SCHEDULED_POOLS;
|
||||
private static ThreadPoolExecutor[] INSTANT_POOLS;
|
||||
private static int THREAD_POOL_RANDOMIZER;
|
||||
|
||||
/**
|
||||
|
@@ -21,9 +21,9 @@ import java.net.UnknownHostException;
|
||||
|
||||
public class IPSubnet
|
||||
{
|
||||
final byte[] _addr;
|
||||
final byte[] _mask;
|
||||
final boolean _isIPv4;
|
||||
private final byte[] _addr;
|
||||
private final byte[] _mask;
|
||||
private final boolean _isIPv4;
|
||||
|
||||
public IPSubnet(String input) throws UnknownHostException, NumberFormatException, ArrayIndexOutOfBoundsException
|
||||
{
|
||||
@@ -47,23 +47,12 @@ public class IPSubnet
|
||||
}
|
||||
}
|
||||
|
||||
public IPSubnet(InetAddress addr, int mask) throws UnknownHostException
|
||||
{
|
||||
_addr = addr.getAddress();
|
||||
_isIPv4 = _addr.length == 4;
|
||||
_mask = getMask(mask, _addr.length);
|
||||
if (!applyMask(_addr))
|
||||
{
|
||||
throw new UnknownHostException(addr + "/" + mask);
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] getAddress()
|
||||
{
|
||||
return _addr;
|
||||
}
|
||||
|
||||
public boolean applyMask(byte[] addr)
|
||||
private boolean applyMask(byte[] addr)
|
||||
{
|
||||
// V4 vs V4 or V6 vs V6 checks
|
||||
if (_isIPv4 == (addr.length == 4))
|
||||
|
@@ -24,7 +24,7 @@ import java.time.temporal.ChronoUnit;
|
||||
*/
|
||||
public class TimeUtil
|
||||
{
|
||||
public static int findIndexOfNonDigit(CharSequence text)
|
||||
private static int findIndexOfNonDigit(CharSequence text)
|
||||
{
|
||||
for (int i = 0; i < text.length(); i++)
|
||||
{
|
||||
|
@@ -25,8 +25,8 @@ import java.util.logging.Logger;
|
||||
public class ScrambledKeyPair
|
||||
{
|
||||
private static Logger LOGGER = Logger.getLogger(ScrambledKeyPair.class.getName());
|
||||
public KeyPair _pair;
|
||||
public byte[] _scrambledModulus;
|
||||
private final KeyPair _pair;
|
||||
private final byte[] _scrambledModulus;
|
||||
|
||||
public ScrambledKeyPair(KeyPair pPair)
|
||||
{
|
||||
|
Reference in New Issue
Block a user