Refactored logger variables to caps.

This commit is contained in:
MobiusDev
2018-04-11 12:23:51 +00:00
parent 847ff1fa4f
commit f6ee0584bf
2180 changed files with 7679 additions and 7634 deletions

View File

@@ -24,7 +24,7 @@ import java.util.logging.Logger;
*/
public abstract class BaseRecievePacket
{
private static final Logger _log = Logger.getLogger(BaseRecievePacket.class.getName());
private static final Logger LOGGER = Logger.getLogger(BaseRecievePacket.class.getName());
private final byte[] _decrypt;
private int _off;
@@ -78,7 +78,7 @@ public abstract class BaseRecievePacket
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
return result;

View File

@@ -26,7 +26,7 @@ import java.util.logging.Logger;
*/
public abstract class BaseSendablePacket
{
private static final Logger _log = Logger.getLogger(BaseSendablePacket.class.getName());
private static final Logger LOGGER = Logger.getLogger(BaseSendablePacket.class.getName());
private final ByteArrayOutputStream _bao;
@@ -78,7 +78,7 @@ public abstract class BaseSendablePacket
}
catch (Exception e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
_bao.write(0);
@@ -93,7 +93,7 @@ public abstract class BaseSendablePacket
}
catch (IOException e)
{
_log.warning(getClass().getSimpleName() + ": " + e.getMessage());
LOGGER.warning(getClass().getSimpleName() + ": " + e.getMessage());
}
}

View File

@@ -24,7 +24,7 @@ import java.util.logging.Logger;
public class ScrambledKeyPair
{
private static Logger _log = Logger.getLogger(ScrambledKeyPair.class.getName());
private static Logger LOGGER = Logger.getLogger(ScrambledKeyPair.class.getName());
public KeyPair _pair;
public byte[] _scrambledModulus;
@@ -66,7 +66,7 @@ public class ScrambledKeyPair
{
scrambledMod[0x40 + i] = (byte) (scrambledMod[0x40 + i] ^ scrambledMod[i]);
}
_log.finer("Modulus was scrambled");
LOGGER.finer("Modulus was scrambled");
return scrambledMod;
}