aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/MiscFormatter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/MiscFormatter.java')
-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");
}
}