aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authornativbarak <nativ@globekeeper.com>2018-02-04 17:26:05 +0200
committernativbarak <nativ@globekeeper.com>2018-02-04 17:26:05 +0200
commit6ae8a397c29a3d7a16d9cf481e2141e3e70921fd (patch)
tree2221585e9dac7efd31d1ad062e49227e265983e7 /src/org/traccar
parentfc3106e742beba6aeaebb66083380c6b9e1082d0 (diff)
downloadtrackermap-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.tar.gz
trackermap-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.tar.bz2
trackermap-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.zip
code refactoring
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/WebDataHandler.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index a4c95aa3c..a30a41208 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -22,10 +22,16 @@ import org.traccar.helper.Log;
import org.traccar.model.Device;
import org.traccar.model.Position;
+import java.util.HashMap;
+import java.util.Map;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
-import java.util.*;
+import java.util.Calendar;
+import java.util.Formatter;
+import java.util.Locale;
+import java.util.TimeZone;
+
public class WebDataHandler extends BaseDataHandler {
@@ -129,7 +135,7 @@ public class WebDataHandler extends BaseDataHandler {
setContent(position, requestBuilder);
requestBuilder.execute();
-
+
} else {
Context.getAsyncHttpClient().prepareGet(formatRequest(position)).execute();
}