aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-18 13:05:49 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-18 13:05:49 +1200
commitf35ce1eda48511c610e32ef481440160966ead1f (patch)
treef0b7ba1934e508a4675900c480a792c0c589244e /src/org/traccar/model
parent5c25c48c8db367097f5ee1e9bf6d7e5435e8665a (diff)
downloadtrackermap-server-f35ce1eda48511c610e32ef481440160966ead1f.tar.gz
trackermap-server-f35ce1eda48511c610e32ef481440160966ead1f.tar.bz2
trackermap-server-f35ce1eda48511c610e32ef481440160966ead1f.zip
Implement json other decoding
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/MiscFormatter.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/model/MiscFormatter.java b/src/org/traccar/model/MiscFormatter.java
index a866f3ec7..d1e1ae959 100644
--- a/src/org/traccar/model/MiscFormatter.java
+++ b/src/org/traccar/model/MiscFormatter.java
@@ -24,7 +24,6 @@ import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import javax.json.JsonString;
import javax.json.JsonValue;
-import org.traccar.helper.Log;
/**
* Format extended tracker status
@@ -33,7 +32,7 @@ public class MiscFormatter {
private static final String xmlRootNode = "info";
- private static DecimalFormat decimalFormat = new DecimalFormat("#.##");
+ private static final DecimalFormat decimalFormat = new DecimalFormat("#.##");
private static String format(Object value) {
if (value instanceof Double || value instanceof Float) {
@@ -74,8 +73,6 @@ public class MiscFormatter {
json.add(entry.getKey(), (Double) entry.getValue());
} else if (entry.getValue() instanceof Boolean) {
json.add(entry.getKey(), (Boolean) entry.getValue());
- } else {
- Log.warning("Unknown type of data");
}
}