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

@@ -48,7 +48,7 @@ public abstract class BaseRecievePacket
public int readC()
{
int result = _decrypt[_off++] & 0xff;
final int result = _decrypt[_off++] & 0xff;
return result;
}
@@ -91,7 +91,7 @@ public abstract class BaseRecievePacket
public final byte[] readB(int length)
{
byte[] result = new byte[length];
final byte[] result = new byte[length];
System.arraycopy(_decrypt, _off, result, 0, length);
_off += length;
return result;

View File

@@ -58,7 +58,7 @@ public abstract class BaseSendablePacket
protected void writeF(double org)
{
long value = Double.doubleToRawLongBits(org);
final long value = Double.doubleToRawLongBits(org);
_bao.write((int) (value & 0xff));
_bao.write((int) ((value >> 8) & 0xff));
_bao.write((int) ((value >> 16) & 0xff));
@@ -123,7 +123,7 @@ public abstract class BaseSendablePacket
writeD(0x00); // reserve for checksum
int padding = _bao.size() % 8;
final int padding = _bao.size() % 8;
if (padding != 0)
{
for (int i = padding; i < 8; i++)