From a66a9ceda2b87b054136d073a9db440c29810520 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 13 Oct 2015 11:40:11 +1300 Subject: Fix some minor check style issues --- src/org/traccar/model/MiscFormatter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/model') 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 attributes = new LinkedHashMap<>(); for (Map.Entry 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; } } -- cgit v1.2.3