aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 13:55:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 13:55:44 +1300
commit32d3fe2239886c4b75c93fcb344721113104ebec (patch)
treefb23ad5fcc7d47cccf313c736bdaf9332bdabdcd /src/org/traccar/helper
parentf49790953e6f9c3f9aa88564caf72a3bf002a801 (diff)
downloadtrackermap-server-32d3fe2239886c4b75c93fcb344721113104ebec.tar.gz
trackermap-server-32d3fe2239886c4b75c93fcb344721113104ebec.tar.bz2
trackermap-server-32d3fe2239886c4b75c93fcb344721113104ebec.zip
Fix some more style issues
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/BitUtil.java2
-rw-r--r--src/org/traccar/helper/Checksum.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/helper/BitUtil.java b/src/org/traccar/helper/BitUtil.java
index 6dceb52d7..e13df8f7e 100644
--- a/src/org/traccar/helper/BitUtil.java
+++ b/src/org/traccar/helper/BitUtil.java
@@ -37,7 +37,7 @@ public class BitUtil {
}
public static long range(long number, int index, int length) {
- return (number >> index) & ((1l << length) - 1);
+ return (number >> index) & ((1L << length) - 1);
}
}
diff --git a/src/org/traccar/helper/Checksum.java b/src/org/traccar/helper/Checksum.java
index 5ff87c7dd..6801e81d6 100644
--- a/src/org/traccar/helper/Checksum.java
+++ b/src/org/traccar/helper/Checksum.java
@@ -21,7 +21,7 @@ import java.util.zip.CRC32;
public class Checksum {
- private static final int CRC16_CCITT_TABLE_REVERSE[] = {
+ private static final int[] CRC16_CCITT_TABLE_REVERSE = {
0x0000, 0x1189, 0x2312, 0x329B, 0x4624, 0x57AD, 0x6536, 0x74BF,
0x8C48, 0x9DC1, 0xAF5A, 0xBED3, 0xCA6C, 0xDBE5, 0xE97E, 0xF8F7,
0x1081, 0x0108, 0x3393, 0x221A, 0x56A5, 0x472C, 0x75B7, 0x643E,
@@ -56,7 +56,7 @@ public class Checksum {
0x7BC7, 0x6A4E, 0x58D5, 0x495C, 0x3DE3, 0x2C6A, 0x1EF1, 0x0F78
};
- private static final int CRC16_CCITT_TABLE[] = {
+ private static final int[] CRC16_CCITT_TABLE = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6,
@@ -154,7 +154,7 @@ public class Checksum {
public static String nmea(String msg) {
int checksum = 0;
- byte bytes[] = msg.getBytes(Charset.defaultCharset());
+ byte[] bytes = msg.getBytes(Charset.defaultCharset());
for (int i = 1; i < msg.length(); i++) {
checksum ^= bytes[i];
}