aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 11:40:11 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-13 11:40:11 +1300
commita66a9ceda2b87b054136d073a9db440c29810520 (patch)
treee50b2df35af2e4bb20a6d7c1bfca6b40fb350494 /src/org/traccar/model
parent8d1e3f1f7e35e5bc0c2898ca9c9d840ef9676cd8 (diff)
downloadtraccar-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.gz
traccar-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.bz2
traccar-server-a66a9ceda2b87b054136d073a9db440c29810520.zip
Fix some minor check style issues
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/MiscFormatter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/model/MiscFormatter.java b/src/org/traccar/model/MiscFormatter.java
index f62e1f42c..2bc6207fb 100644
--- a/src/org/traccar/model/MiscFormatter.java
+++ b/src/org/traccar/model/MiscFormatter.java
@@ -91,7 +91,8 @@ public class MiscFormatter {
Map<String, Object> attributes = new LinkedHashMap<>();
for (Map.Entry<String, JsonValue> entry : json.entrySet()) {
- switch (entry.getValue().getValueType()) {
+ JsonValue.ValueType type = entry.getValue().getValueType();
+ switch (type) {
case STRING:
attributes.put(entry.getKey(), ((JsonString) entry.getValue()).getString());
break;
@@ -110,7 +111,7 @@ public class MiscFormatter {
attributes.put(entry.getKey(), false);
break;
default:
- Log.warning(new IllegalArgumentException());
+ Log.warning(new IllegalArgumentException(type.name()));
break;
}
}