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

@@ -1129,7 +1129,7 @@ public final class BlowfishEngine
*/
private void processTable(int xl, int xr, int[] table)
{
int size = table.length;
final int size = table.length;
for (int s = 0; s < size; s += 2)
{
xl ^= P[0];
@@ -1174,7 +1174,7 @@ public final class BlowfishEngine
* (2) Now, XOR P[0] with the first 32 bits of the key, XOR P[1] with the second 32-bits of the key, and so on for all bits of the key (up to P[17]).<br>
* Repeatedly cycle through the key bits until the entire P-array has been XOR-ed with the key bits
*/
int keyLength = key.length;
final int keyLength = key.length;
int keyIndex = 0;
for (int i = 0; i < P_SZ; i++)
{

View File

@@ -71,7 +71,7 @@ public final class NewCrypt
}
long chksum = 0;
int count = size - 4;
final int count = size - 4;
long check = -1;
int i;
@@ -111,7 +111,7 @@ public final class NewCrypt
public static void appendChecksum(final byte[] raw, final int offset, final int size)
{
long chksum = 0;
int count = size - 4;
final int count = size - 4;
long ecx;
int i;
@@ -157,7 +157,7 @@ public final class NewCrypt
*/
static void encXORPass(byte[] raw, final int offset, final int size, int key)
{
int stop = size - 8;
final int stop = size - 8;
int pos = 4 + offset;
int edx;
int ecx = key; // Initial xor key

View File

@@ -44,14 +44,14 @@ public class ScrambledKeyPair
if ((scrambledMod.length == 0x81) && (scrambledMod[0] == 0x00))
{
byte[] temp = new byte[0x80];
final byte[] temp = new byte[0x80];
System.arraycopy(scrambledMod, 1, temp, 0, 0x80);
scrambledMod = temp;
}
// step 1 : 0x4d-0x50 <-> 0x00-0x04
for (int i = 0; i < 4; i++)
{
byte temp = scrambledMod[0x00 + i];
final byte temp = scrambledMod[0x00 + i];
scrambledMod[0x00 + i] = scrambledMod[0x4d + i];
scrambledMod[0x4d + i] = temp;
}