aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 14:29:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 14:29:30 +1300
commit94997c733c597174681a3f5d980c594917d47fd7 (patch)
tree43e80f974d997c1dfbabf44c17d866b16794795f /src/org/traccar/protocol/OsmAndProtocolDecoder.java
parent2343111919e0cddd63a481edf84e64f5dd46ea92 (diff)
downloadtrackermap-server-94997c733c597174681a3f5d980c594917d47fd7.tar.gz
trackermap-server-94997c733c597174681a3f5d980c594917d47fd7.tar.bz2
trackermap-server-94997c733c597174681a3f5d980c594917d47fd7.zip
Fix unused imports and other warnings
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index aa941b7fc..3a0274269 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -56,9 +56,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
Position position = new Position();
position.setProtocol(getProtocolName());
- for (String key : params.keySet()) {
- String value = params.get(key).get(0);
- switch (key) {
+ for (Map.Entry<String, List<String>> entry : params.entrySet()) {
+ String value = entry.getValue().get(0);
+ switch (entry.getKey()) {
case "id":
case "deviceid":
if (!identify(value, channel, remoteAddress)) {
@@ -101,7 +101,7 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_BATTERY, value);
break;
default:
- position.set(key, value);
+ position.set(entry.getKey(), value);
break;
}
}