diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-13 11:40:11 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-13 11:40:11 +1300 |
commit | a66a9ceda2b87b054136d073a9db440c29810520 (patch) | |
tree | e50b2df35af2e4bb20a6d7c1bfca6b40fb350494 /src/org/traccar/model | |
parent | 8d1e3f1f7e35e5bc0c2898ca9c9d840ef9676cd8 (diff) | |
download | trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.gz trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.tar.bz2 trackermap-server-a66a9ceda2b87b054136d073a9db440c29810520.zip |
Fix some minor check style issues
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/MiscFormatter.java | 5 |
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; } } |