aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GalileoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 13:37:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 13:37:44 +1300
commitf49790953e6f9c3f9aa88564caf72a3bf002a801 (patch)
tree17911c5f7546379b841c00f0119b140514f5862f /src/org/traccar/protocol/GalileoProtocolDecoder.java
parent74c93c7cef8fe3ef53ba17b3c9da7b374003d042 (diff)
downloadtrackermap-server-f49790953e6f9c3f9aa88564caf72a3bf002a801.tar.gz
trackermap-server-f49790953e6f9c3f9aa88564caf72a3bf002a801.tar.bz2
trackermap-server-f49790953e6f9c3f9aa88564caf72a3bf002a801.zip
Fix some more style problems
Diffstat (limited to 'src/org/traccar/protocol/GalileoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GalileoProtocolDecoder.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/traccar/protocol/GalileoProtocolDecoder.java b/src/org/traccar/protocol/GalileoProtocolDecoder.java
index cc05a525b..ea8ac08e7 100644
--- a/src/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -51,7 +51,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
private static final int TAG_REFRIGERATOR = 0x5b;
private static final int TAG_PRESSURE = 0x5c;
- private static final Map<Integer, Integer> tagLengthMap = new HashMap<>();
+ private static final Map<Integer, Integer> TAG_LENGTH_MAP = new HashMap<>();
static {
int[] l1 = {
@@ -80,25 +80,25 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
0xf6, 0xf7, 0xf8
};
for (int i : l1) {
- tagLengthMap.put(i, 1);
+ TAG_LENGTH_MAP.put(i, 1);
}
for (int i : l2) {
- tagLengthMap.put(i, 2);
+ TAG_LENGTH_MAP.put(i, 2);
}
for (int i : l3) {
- tagLengthMap.put(i, 3);
+ TAG_LENGTH_MAP.put(i, 3);
}
for (int i : l4) {
- tagLengthMap.put(i, 4);
+ TAG_LENGTH_MAP.put(i, 4);
}
- tagLengthMap.put(TAG_COORDINATES, 9);
- tagLengthMap.put(TAG_IMEI, 15);
- tagLengthMap.put(TAG_REFRIGERATOR, 7); // variable length
- tagLengthMap.put(TAG_PRESSURE, 68);
+ TAG_LENGTH_MAP.put(TAG_COORDINATES, 9);
+ TAG_LENGTH_MAP.put(TAG_IMEI, 15);
+ TAG_LENGTH_MAP.put(TAG_REFRIGERATOR, 7); // variable length
+ TAG_LENGTH_MAP.put(TAG_PRESSURE, 68);
}
private static int getTagLength(int tag) {
- return tagLengthMap.get(tag);
+ return TAG_LENGTH_MAP.get(tag);
}
private void sendReply(Channel channel, int checksum) {