Added missing final modifiers.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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++)
|
||||
|
Reference in New Issue
Block a user