Browse Source

Merge pull request #291 from DevFactory/release/modifiers-declaration-order-fix-1

Code quality fix - Modifiers should be declared in the correct order
master
Nikita Koksharov 10 years ago
parent
commit
dcb680a4ed
  1. 8
      src/main/java/com/corundumstudio/socketio/protocol/PacketEncoder.java
  2. 4
      src/main/java/com/corundumstudio/socketio/protocol/UTF8CharsScanner.java

8
src/main/java/com/corundumstudio/socketio/protocol/PacketEncoder.java

@ -141,25 +141,25 @@ public class PacketEncoder {
return (byte) (number ^ 0x30);
}
final static char[] DigitTens = {'0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1',
static final char[] DigitTens = {'0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1',
'1', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '3', '3', '3',
'3', '3', '3', '3', '3', '3', '3', '4', '4', '4', '4', '4', '4', '4', '4', '4', '4', '5', '5',
'5', '5', '5', '5', '5', '5', '5', '5', '6', '6', '6', '6', '6', '6', '6', '6', '6', '6', '7',
'7', '7', '7', '7', '7', '7', '7', '7', '7', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8',
'9', '9', '9', '9', '9', '9', '9', '9', '9', '9',};
final static char[] DigitOnes = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3',
static final char[] DigitOnes = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2',
'3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1',
'2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0',
'1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',};
final static char[] digits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e',
static final char[] digits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z'};
final static int[] sizeTable = {9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999,
static final int[] sizeTable = {9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999,
Integer.MAX_VALUE};
// Requires positive x

4
src/main/java/com/corundumstudio/socketio/protocol/UTF8CharsScanner.java

@ -23,7 +23,7 @@ public class UTF8CharsScanner {
* Lookup table used for determining which input characters need special
* handling when contained in text segment.
*/
final static int[] sInputCodes;
static final int[] sInputCodes;
static {
/*
* 96 would do for most cases (backslash is ascii 94) but if we want to
@ -43,7 +43,7 @@ public class UTF8CharsScanner {
/**
* Additionally we can combine UTF-8 decoding info into similar data table.
*/
final static int[] sInputCodesUtf8;
static final int[] sInputCodesUtf8;
static {
int[] table = new int[sInputCodes.length];
System.arraycopy(sInputCodes, 0, table, 0, sInputCodes.length);

Loading…
Cancel
Save